Skip to content

Commit

Permalink
The keyword has been deprecated in C++17.
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jul 25, 2024
1 parent 76c9bf1 commit 5af3321
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions XYPlotParam.H
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private:
//
// Look up item in table -- return zero if not found
//
param_full * st_lookup(register char *key);
param_full * st_lookup(char *key);

//
// Insert an item into the table - replacing if it already exists
Expand All @@ -215,10 +215,10 @@ private:
//
void rehash(void);

int strihash(register char *xypstring) {
register int val = 0;
register int c;
register int i = 0;
int strihash(char *xypstring) {
int val = 0;
int c;
int i = 0;

while ((c = *xypstring++) != '\0') {
if(isupper(c)) {
Expand Down
6 changes: 3 additions & 3 deletions XYPlotParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ void XYPlotParameters::WriteToFile(char *filename) {
//
//
// -------------------------------------------------------------------
param_full *XYPlotParameters::st_lookup(register char *key) {
register st_table_entry *ptr;
param_full *XYPlotParameters::st_lookup(char *key) {
st_table_entry *ptr;

// find entry.
ptr = param_table.bins[strihash(key)];
Expand All @@ -532,7 +532,7 @@ param_full *XYPlotParameters::st_lookup(register char *key) {
int XYPlotParameters::st_insert(char *key, param_full *value) {
int hash_val;
st_table_entry *newentry;
register st_table_entry *ptr, **last;
st_table_entry *ptr, **last;

hash_val = strihash(key);

Expand Down

0 comments on commit 5af3321

Please sign in to comment.