summaryrefslogtreecommitdiffstats
path: root/kjots/kjotsentry.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-03 00:49:17 +0900
committerMichele Calgaro <[email protected]>2023-12-05 11:41:58 +0900
commit5b1fdb9a3fa898c7bc3921e75ae04eece2332fb3 (patch)
tree8f4b12ee79c899ad27380ae0e0b995252a0855ef /kjots/kjotsentry.cpp
parent5ecef94fcb0ab49312273a1541025165499afa38 (diff)
downloadtdeutils-5b1fdb9a3fa898c7bc3921e75ae04eece2332fb3.tar.gz
tdeutils-5b1fdb9a3fa898c7bc3921e75ae04eece2332fb3.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit aa69f1c2ffda0e4e0339c1686a9ff4b3d00f4ac7)
Diffstat (limited to 'kjots/kjotsentry.cpp')
-rw-r--r--kjots/kjotsentry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kjots/kjotsentry.cpp b/kjots/kjotsentry.cpp
index 03581cf..e09b468 100644
--- a/kjots/kjotsentry.cpp
+++ b/kjots/kjotsentry.cpp
@@ -264,7 +264,7 @@ bool KJotsBook::isBookFile(const TQString& filename)
{
if ( folder.open(IO_ReadWrite) )
{
- TQTextStream st(TQT_TQIODEVICE(&folder));
+ TQTextStream st(&folder);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString buf = st.readLine().stripWhiteSpace();
@@ -306,7 +306,7 @@ bool KJotsBook::openBook(const TQString& filename)
if ( file.exists() && file.open(IO_ReadWrite) ) //TODO: Implement read-only mode?
{
- TQTextStream st(TQT_TQIODEVICE(&file));
+ TQTextStream st(&file);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString data = st.read();
@@ -388,7 +388,7 @@ bool KJotsBook::openBook(const TQString& filename)
*/
bool KJotsBook::loadOldBook(TQFile &file)
{
- TQTextStream st(TQT_TQIODEVICE(&file));
+ TQTextStream st(&file);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString buf = st.readLine();