summaryrefslogtreecommitdiffstats
path: root/kjots
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:49:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-04 00:18:42 +0900
commitaa69f1c2ffda0e4e0339c1686a9ff4b3d00f4ac7 (patch)
tree8a611432bc0a1a1f8a689fa0ba5dece529e3e21e /kjots
parent7589d48a4101244c3c7a27931293ee7924f78119 (diff)
downloadtdeutils-aa69f1c2ffda0e4e0339c1686a9ff4b3d00f4ac7.tar.gz
tdeutils-aa69f1c2ffda0e4e0339c1686a9ff4b3d00f4ac7.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kjots')
-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();