summaryrefslogtreecommitdiffstats
path: root/kbabel
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 12:14:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 12:14:55 +0900
commita120985048e7e9e5c745b97c561c9a1ae531ec03 (patch)
tree68bfbf617d3ed4abcadf5ca0118401fbbadf49d0 /kbabel
parentb0c86264e0cd10a0d3a47de3b05be453d9417bcd (diff)
downloadtdesdk-a120985048e7e9e5c745b97c561c9a1ae531ec03.tar.gz
tdesdk-a120985048e7e9e5c745b97c561c9a1ae531ec03.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kbabel')
-rw-r--r--kbabel/kbabel/kbcataloglistviewitem.cpp8
-rw-r--r--kbabel/kbabel/kbcataloglistviewitem.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/kbabel/kbabel/kbcataloglistviewitem.cpp b/kbabel/kbabel/kbcataloglistviewitem.cpp
index 5507e9db..361b967c 100644
--- a/kbabel/kbabel/kbcataloglistviewitem.cpp
+++ b/kbabel/kbabel/kbcataloglistviewitem.cpp
@@ -80,8 +80,8 @@ void KBCatalogListViewItem::setup()
widthChanged();
- m_doc_msgid.reset(0);
- m_doc_msgstr.reset(0);
+ m_doc_msgid.reset();
+ m_doc_msgstr.reset();
makeDocAvailable();
@@ -170,7 +170,7 @@ void KBCatalogListViewItem::paintMsgStrCell(TQPainter* p, const TQColorGroup& cg
void KBCatalogListViewItem::paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
- assert(m_doc_msgid.get() && m_doc_msgstr.get() && p);
+ assert(m_doc_msgid && m_doc_msgstr && p);
// paint background (empty text)
@@ -191,7 +191,7 @@ void KBCatalogListViewItem::paintCell(TQPainter* p, const TQColorGroup& cg,
void KBCatalogListViewItem::makeDocAvailable()
{
- if (m_doc_msgid.get() && m_doc_msgstr.get())
+ if (m_doc_msgid && m_doc_msgstr)
return;
assert(listView());
diff --git a/kbabel/kbabel/kbcataloglistviewitem.h b/kbabel/kbabel/kbcataloglistviewitem.h
index 6384360f..a29ca9ba 100644
--- a/kbabel/kbabel/kbcataloglistviewitem.h
+++ b/kbabel/kbabel/kbcataloglistviewitem.h
@@ -65,8 +65,8 @@ private:
TQString m_msgid;
TQString m_msgstr;
- std::auto_ptr<TQSimpleRichText> m_doc_msgid;
- std::auto_ptr<TQSimpleRichText> m_doc_msgstr;
+ std::unique_ptr<TQSimpleRichText> m_doc_msgid;
+ std::unique_ptr<TQSimpleRichText> m_doc_msgstr;
};
#endif