diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /libk3bdevice/k3bcrc.cpp | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3bdevice/k3bcrc.cpp')
-rw-r--r-- | libk3bdevice/k3bcrc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libk3bdevice/k3bcrc.cpp b/libk3bdevice/k3bcrc.cpp index f533ae7..e382f9b 100644 --- a/libk3bdevice/k3bcrc.cpp +++ b/libk3bdevice/k3bcrc.cpp @@ -18,7 +18,7 @@ #include <k3bdebug.h> -static Q_UINT16 g_x25Table[1<<8] = { +static TQ_UINT16 g_x25Table[1<<8] = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, @@ -54,7 +54,7 @@ static Q_UINT16 g_x25Table[1<<8] = { }; -Q_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, Q_UINT16 crc ) +TQ_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, TQ_UINT16 crc ) { while( len-- ) { crc = (crc<<8) ^ g_x25Table[(crc>>8) ^ (*message++)]; @@ -64,13 +64,13 @@ Q_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, Q_UINT16 } -bool K3bDevice::checkQCrc( unsigned char* subdata ) +bool K3bDevice::checkTQCrc( unsigned char* subdata ) { // Red Book for some reason inverts the CRC bytes subdata[10] ^= 0xff; subdata[11] ^= 0xff; - Q_UINT16 crc = calcX25( subdata, 12 ); + TQ_UINT16 crc = calcX25( subdata, 12 ); // correct the data subdata[10] ^= 0xff; |