diff options
Diffstat (limited to 'src/modules/objects/class_file.cpp')
-rw-r--r-- | src/modules/objects/class_file.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/modules/objects/class_file.cpp b/src/modules/objects/class_file.cpp index 0763a2aa..9e4b2790 100644 --- a/src/modules/objects/class_file.cpp +++ b/src/modules/objects/class_file.cpp @@ -39,27 +39,13 @@ const char * const mod_tbl[] = { "Append", "Truncate" }; -#ifdef COMPILE_USE_QT4 -#define IO_RAW TQIODevice::Unbuffered -#define IO_READONLY TQIODevice::ReadOnly -#define IO_WRITEONLY TQIODevice::WriteOnly -#define IO_READWRITE TQIODevice::ReadWrite -#define IO_APPEND TQIODevice::Append -#define IO_TRUNCATE TQIODevice::Truncate -//#define IO_TRANSLATE TQIODevice::Text -#else #define IO_RAW IO_Raw #define IO_READONLY IO_ReadOnly #define IO_WRITEONLY IO_WriteOnly #define IO_READWRITE IO_ReadWrite #define IO_APPEND IO_Append #define IO_TRUNCATE IO_Truncate -#endif -#ifdef COMPILE_USE_QT4 -const TQIODevice::OpenMode mod_cod[] = { -#else const int mod_cod[] = { -#endif IO_RAW, IO_READONLY, IO_WRITEONLY, @@ -225,29 +211,6 @@ bool KviKvsObject_file::functionopen(KviKvsObjectFunctionCall *c) c->warning(__tr2qs("Empty filename string")); return true; } - #ifdef COMPILE_USE_QT4 - TQIODevice::OpenMode mod,sum; - if (modes.empty()) sum = IO_READONLY; // if no parameters given, default to ReadWrite | Append - else - { - for ( int idx=0;idx<modes.count();idx++) - { - mod = IO_ReadOnly; - for(unsigned int j = 0; j < mod_num; j++) - { - if(KviTQString::equalCI(modes.at(idx), mod_tbl[j])) - { - mod=mod_cod[j]; - break; - } - } - if(mod!=IO_ReadOnly) - sum = sum | mod; - else - c->warning(__tr2qs("No such open mode: '%Q'"),&modes.at(idx)); - } - } -#else int mod,sum=0; if (!modes.first()) sum = IO_READONLY; // if no parameters given, default to ReadWrite | Append else @@ -270,7 +233,6 @@ if (!modes.first()) sum = IO_READONLY; // if no parameters given, default to Rea c->warning(__tr2qs("No such open mode: '%Q'"),&(*it)); } } -#endif m_pFile->open(sum); return true; } |