summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:36:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-04 14:04:53 +0900
commitb70474e0dea4405c89c44d798dad759bd7e5d7a9 (patch)
tree2e552a4821d77ef83d212040de5b579ac69c151d
parentb29b77fba03a4d0b43928e583373252703f3d19c (diff)
downloadbasket-b70474e0.tar.gz
basket-b70474e0.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 1a620eed38cfa429508f6ac347e09a694b4adf16)
-rw-r--r--src/htmlexporter.cpp2
-rw-r--r--src/notecontent.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/htmlexporter.cpp b/src/htmlexporter.cpp
index a81c13f..413220b 100644
--- a/src/htmlexporter.cpp
+++ b/src/htmlexporter.cpp
@@ -200,7 +200,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
TQFile file(basketFilePath);
if (!file.open(IO_WriteOnly))
return;
- stream.setDevice(TQT_TQIODEVICE(&file));
+ stream.setDevice(&file);
stream.setEncoding(TQTextStream::UnicodeUTF8);
// Compute the colors to draw dragient for notes:
diff --git a/src/notecontent.cpp b/src/notecontent.cpp
index ef01cb9..c3629f6 100644
--- a/src/notecontent.cpp
+++ b/src/notecontent.cpp
@@ -773,7 +773,7 @@ bool ImageContent::finishLazyLoad()
TQBuffer buffer(content);
buffer.open(IO_ReadOnly);
- m_format = (char* /* from const char* */)TQImageIO::imageFormat(TQT_TQIODEVICE(&buffer)); // See TQImageIO to know what formats can be supported.
+ m_format = (char* /* from const char* */)TQImageIO::imageFormat(&buffer); // See TQImageIO to know what formats can be supported.
buffer.close();
if (m_format) {
m_pixmap.loadFromData(content);