diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:42 +0900 |
commit | 41e0f335b5e2ab65cf47191a5b1c32adee2c24c3 (patch) | |
tree | 016b50163495e6d8607a1205b4e29179fbf56f8a /tdeabc | |
parent | 9c1e136983b9361291646002b2c6c1f733ee13d4 (diff) | |
download | tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.tar.gz tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
Diffstat (limited to 'tdeabc')
-rw-r--r-- | tdeabc/vcard/Enum.cpp | 12 | ||||
-rw-r--r-- | tdeabc/vcard/RToken.cpp | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tdeabc/vcard/Enum.cpp b/tdeabc/vcard/Enum.cpp index bcb48f98a..4811a0955 100644 --- a/tdeabc/vcard/Enum.cpp +++ b/tdeabc/vcard/Enum.cpp @@ -433,12 +433,12 @@ static signed char b64dec[] = { char * VCARD::decodeBase64(const char * s, unsigned long srcl, unsigned long & len) { - register unsigned char c; - register unsigned long e(0); + unsigned char c; + unsigned long e(0); len = 0; unsigned const char * src = (unsigned const char *)s; char * ret = new char[srcl + (srcl / 4 + 1)]; - register char *d = ret; + char *d = ret; while (srcl--) { // Critical loop c = *src++; int dec = b64dec[c]; @@ -468,12 +468,12 @@ VCARD::decodeBase64(const char * s, unsigned long srcl, unsigned long & len) char * VCARD::encodeBase64(const char * src, unsigned long srcl, unsigned long & destl) { - register const unsigned char *s = (unsigned char *)src; - register unsigned long i = ((srcl + 2) / 3) * 4; + const unsigned char *s = (unsigned char *)src; + unsigned long i = ((srcl + 2) / 3) * 4; destl = i += 2 * ((i / 60) + 1); i = 0; char * ret = new char[destl]; - register unsigned char *d((unsigned char *)ret); + unsigned char *d((unsigned char *)ret); while (srcl != 0) { // Critical loop *d++ = B64[s[0] >> 2]; *d++ = B64[((s[0] << 4) + (--srcl == 0 ? 0 : s[1] >> 4)) & 0x3f]; diff --git a/tdeabc/vcard/RToken.cpp b/tdeabc/vcard/RToken.cpp index 582a9e1c7..0f7910688 100644 --- a/tdeabc/vcard/RToken.cpp +++ b/tdeabc/vcard/RToken.cpp @@ -40,11 +40,11 @@ RTokenise(const char * str, const char * delim, TQStrList & l) char * len = (char *)(str + strlen(str)); // End of string. - register char * rstart = new char[strlen(str) + 1]; - register char * r = rstart; + char * rstart = new char[strlen(str) + 1]; + char * r = rstart; - register const char * i = str; // Cursor. + const char * i = str; // Cursor. while (i <= len) { |