Skip to content

Commit 5af3321

Browse files
committed
The keyword has been deprecated in C++17.
1 parent 76c9bf1 commit 5af3321

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

XYPlotParam.H

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private:
198198
//
199199
// Look up item in table -- return zero if not found
200200
//
201-
param_full * st_lookup(register char *key);
201+
param_full * st_lookup(char *key);
202202

203203
//
204204
// Insert an item into the table - replacing if it already exists
@@ -215,10 +215,10 @@ private:
215215
//
216216
void rehash(void);
217217

218-
int strihash(register char *xypstring) {
219-
register int val = 0;
220-
register int c;
221-
register int i = 0;
218+
int strihash(char *xypstring) {
219+
int val = 0;
220+
int c;
221+
int i = 0;
222222

223223
while ((c = *xypstring++) != '\0') {
224224
if(isupper(c)) {

XYPlotParam.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ void XYPlotParameters::WriteToFile(char *filename) {
510510
//
511511
//
512512
// -------------------------------------------------------------------
513-
param_full *XYPlotParameters::st_lookup(register char *key) {
514-
register st_table_entry *ptr;
513+
param_full *XYPlotParameters::st_lookup(char *key) {
514+
st_table_entry *ptr;
515515

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

537537
hash_val = strihash(key);
538538

0 commit comments

Comments
 (0)