diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:50 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:50 +0900 |
commit | d72b28bb90240a2dbc8ea2e7a2aeb3e0e692ef7a (patch) | |
tree | ce1ac26aa90c557aa009fa04fb9199cfffe81d79 | |
parent | f0c014a65408af46438429508cbe0e05139a3513 (diff) | |
download | kftpgrabber-d72b28bb90240a2dbc8ea2e7a2aeb3e0e692ef7a.tar.gz kftpgrabber-d72b28bb90240a2dbc8ea2e7a2aeb3e0e692ef7a.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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 |