diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:50 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 23:52:55 +0900 |
commit | e7edb92ed2d35b04c106272016167d7e1497f9d7 (patch) | |
tree | d34bc27cca071894235b05653cab57fef87c4d91 | |
parent | f20c9bbc5565e3edd5d222819c7f4e43e1f0f008 (diff) | |
download | kftpgrabber-e7edb92ed2d35b04c106272016167d7e1497f9d7.tar.gz kftpgrabber-e7edb92ed2d35b04c106272016167d7e1497f9d7.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d72b28bb90240a2dbc8ea2e7a2aeb3e0e692ef7a)
-rw-r--r-- | kftpgrabber/src/checksumverifier.cpp | 4 | ||||
-rw-r--r-- | kftpgrabber/src/checksumverifier.h | 2 | ||||
-rw-r--r-- | kftpgrabber/src/engine/sftpsocket.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kftpgrabber/src/checksumverifier.cpp b/kftpgrabber/src/checksumverifier.cpp index 5d8080e..0230e74 100644 --- a/kftpgrabber/src/checksumverifier.cpp +++ b/kftpgrabber/src/checksumverifier.cpp @@ -133,7 +133,7 @@ void ChecksumVerifierThread::checkSFV(const TQString &sfvfile, const TQString &f } } -inline long ChecksumVerifierThread::UpdateCRC(register unsigned long CRC, register char *buffer, register long count) +inline long ChecksumVerifierThread::UpdateCRC(unsigned long CRC, char *buffer, long count) { unsigned long CRCTABLE[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, @@ -196,7 +196,7 @@ inline long ChecksumVerifierThread::UpdateCRC(register unsigned long CRC, regist long ChecksumVerifierThread::getFileCRC(const char *filename) { - register unsigned long crc = 0xffffffff; + unsigned long crc = 0xffffffff; FILE *f; long totalread = 0; long localread; diff --git a/kftpgrabber/src/checksumverifier.h b/kftpgrabber/src/checksumverifier.h index c56abfb..2094d14 100644 --- a/kftpgrabber/src/checksumverifier.h +++ b/kftpgrabber/src/checksumverifier.h @@ -127,7 +127,7 @@ private: void checkSFV(const TQString &sfvfile, const TQString &fileToCheck = TQString::null); - static inline long UpdateCRC(register unsigned long CRC, register char *buffer, register long count); + static inline long UpdateCRC(unsigned long CRC, char *buffer, long count); static long getFileCRC(const char *filename); }; diff --git a/kftpgrabber/src/engine/sftpsocket.cpp b/kftpgrabber/src/engine/sftpsocket.cpp index 33443de..cbde3fa 100644 --- a/kftpgrabber/src/engine/sftpsocket.cpp +++ b/kftpgrabber/src/engine/sftpsocket.cpp @@ -569,7 +569,7 @@ public: TQString destinationDir = destinationFile.directory(); TQString fullPath; - for (register int i = 1; i <= destinationDir.contains('/'); i++) { + for (int i = 1; i <= destinationDir.contains('/'); i++) { fullPath += "/" + destinationDir.section('/', i, i); // Create the directory |