summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/lnk/read_lnk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/lnk/read_lnk.cpp')
-rw-r--r--kfile-plugins/lnk/read_lnk.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kfile-plugins/lnk/read_lnk.cpp b/kfile-plugins/lnk/read_lnk.cpp
index f65b657..645486e 100644
--- a/kfile-plugins/lnk/read_lnk.cpp
+++ b/kfile-plugins/lnk/read_lnk.cpp
@@ -33,27 +33,27 @@ struct LNKHeader
{
char magic[4];
char GUID[16];
- Q_UINT32 flags;
- Q_UINT32 attributes;
+ TQ_UINT32 flags;
+ TQ_UINT32 attributes;
char time1[8];
char time2[8];
char time3[8];
- Q_UINT32 length;
- Q_UINT32 iconNum;
- Q_UINT32 showWnd;
- Q_UINT32 hotKey;
+ TQ_UINT32 length;
+ TQ_UINT32 iconNum;
+ TQ_UINT32 showWnd;
+ TQ_UINT32 hotKey;
char filler[8];
};
struct LNKFileLocation
{
- Q_UINT32 totalLen;
- Q_UINT32 ptr;
- Q_UINT32 flags;
- Q_UINT32 localVolume;
- Q_UINT32 basePath;
- Q_UINT32 netVolume;
- Q_UINT32 pathname;
+ TQ_UINT32 totalLen;
+ TQ_UINT32 ptr;
+ TQ_UINT32 flags;
+ TQ_UINT32 localVolume;
+ TQ_UINT32 basePath;
+ TQ_UINT32 netVolume;
+ TQ_UINT32 pathname;
};
//--------------------------------------------------------------------------------
@@ -97,7 +97,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
if ( header.flags & 0x1 ) // the shell item id list is present
{
- Q_UINT16 len;
+ TQ_UINT16 len;
// skip that list
if ( (fread(&len, sizeof(len), 1, fd) != 1) || (fseek(fd, len, SEEK_CUR) != 0) )
@@ -156,7 +156,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
{
info.volumeName = (start + loc.localVolume + 0x10); // volume label
- info.path = TQString::null;
+ info.path = TQString();
if ( *(start + loc.basePath) )
{
@@ -182,8 +182,8 @@ bool readLNK(const KURL &url, LNKInfo &info)
else // network path
{
info.path = TQString("%1\\%2")
- .arg(start + loc.netVolume + 0x14) // network share name
- .arg(start + loc.pathname);
+ .tqarg(start + loc.netVolume + 0x14) // network share name
+ .tqarg(start + loc.pathname);
}
delete [] data;
@@ -191,7 +191,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
if ( header.flags & 0x4 ) // has description string
{
- Q_UINT16 len;
+ TQ_UINT16 len;
if ( fread(&len, sizeof(len), 1, fd) != 1 )
{