summaryrefslogtreecommitdiffstats
path: root/src/sidebar/sq_storagefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sidebar/sq_storagefile.cpp')
-rw-r--r--src/sidebar/sq_storagefile.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sidebar/sq_storagefile.cpp b/src/sidebar/sq_storagefile.cpp
index cb26937..cf41122 100644
--- a/src/sidebar/sq_storagefile.cpp
+++ b/src/sidebar/sq_storagefile.cpp
@@ -16,7 +16,7 @@
***************************************************************************/
#include <tqfile.h>
-#include <tqstring.h>
+#include <tqcstring.h>
#include <tqstring.h>
#include <kmdcodec.h>
@@ -38,7 +38,7 @@ void SQ_StorageFile::writeStorageFileAsString(const TQString &path, const KURL &
if(file.open(IO_WriteOnly))
{
- TQString k = content.utf8();
+ TQCString k = content.local8Bit();
file.writeBlock(k, k.length());
file.close();
}
@@ -64,12 +64,9 @@ TQString SQ_StorageFile::readStorageFileAsString(const TQString &path)
if(file.open(IO_ReadOnly))
{
TQByteArray ba = file.readAll();
-
if(file.status() == IO_Ok)
{
- TQString k;
str.append(ba);
- str = TQString::fromUtf8(str);
}
}