From 1054735d7196211a96138303f1b31da96ebe3f5e Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Wed, 19 Jan 2022 15:26:02 +0100 Subject: [PATCH] drop deprecated register keyword --- src/ptclib/random.cxx | 2 +- src/ptlib/common/contain.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ptclib/random.cxx b/src/ptclib/random.cxx index 87864bc..757901c 100644 --- a/src/ptclib/random.cxx +++ b/src/ptclib/random.cxx @@ -138,7 +138,7 @@ static unsigned redistribute(unsigned value, unsigned minimum, unsigned maximum) unsigned PRandom::Generate() { if (randcnt-- == 0) { - register DWORD a,b,x,y,*m,*mm,*m2,*r,*mend; + DWORD a,b,x,y,*m,*mm,*m2,*r,*mend; mm=randmem; r=randrsl; a = randa; b = randb + (++randc); for (m = mm, mend = m2 = m+(RandSize/2); m slen) return; @@ -1178,7 +1178,7 @@ PString PString::operator()(PINDEX start, PINDEX end) const if (end < 0 || start < 0 || end < start) return Empty(); - register PINDEX len = GetLength(); + PINDEX len = GetLength(); if (start > len) return Empty(); @@ -1315,7 +1315,7 @@ PINDEX PString::Find(char ch, PINDEX offset) const if (offset < 0) return P_MAX_INDEX; - register PINDEX len = GetLength(); + PINDEX len = GetLength(); while (offset < len) { if (InternalCompare(offset, ch) == EqualTo) return offset; @@ -1531,7 +1531,7 @@ void PString::Splice(const char * cstr, PINDEX pos, PINDEX len) if (len < 0 || pos < 0) return; - register PINDEX slen = GetLength(); + PINDEX slen = GetLength(); if (pos >= slen) operator+=(cstr); else {