diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-02-16 11:30:46 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-09 21:06:22 +0900 |
| commit | caf01321779aee7b959c29a74f15fdc23a81c527 (patch) | |
| tree | d63baeb7a8bb39899db1eee077ab71df37149f9e /src/sidebar/sq_storagefile.cpp | |
| parent | 37453a729671f7c92987a3cce03cf540de067f9c (diff) | |
| download | ksquirrel-caf01321779aee7b959c29a74f15fdc23a81c527.tar.gz ksquirrel-caf01321779aee7b959c29a74f15fdc23a81c527.zip | |
Fix bad code, this was highlighted when building with cmake and ninja
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 591ce28f0128f324165b19f6ff653d158711614b)
Diffstat (limited to 'src/sidebar/sq_storagefile.cpp')
| -rw-r--r-- | src/sidebar/sq_storagefile.cpp | 7 |
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); } } |
