summaryrefslogtreecommitdiffstats
path: root/kbabel
diff options
context:
space:
mode:
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