diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-23 12:14:55 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-25 10:18:40 +0900 |
commit | 725db2ce097e993b6011900c7b9701d399cd8a1c (patch) | |
tree | fca06c44ae706801db44301f713765a0ae2a7984 /kbabel | |
parent | d3656a49e67074e23e8df5daef0f585199b0a8da (diff) | |
download | tdesdk-725db2ce097e993b6011900c7b9701d399cd8a1c.tar.gz tdesdk-725db2ce097e993b6011900c7b9701d399cd8a1c.zip |
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a120985048e7e9e5c745b97c561c9a1ae531ec03)
Diffstat (limited to 'kbabel')
-rw-r--r-- | kbabel/kbabel/kbcataloglistviewitem.cpp | 8 | ||||
-rw-r--r-- | kbabel/kbabel/kbcataloglistviewitem.h | 4 |
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 |