diff options
author | OBATA Akio <obache@wizdas.com> | 2022-01-22 14:34:09 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-01-22 19:00:03 +0100 |
commit | 0baef91f719d24223b99ebe18aa071aa5212208f (patch) | |
tree | fa1ce92099fe9d5ec8978149aa29265200d0ee6f /kghostview/kgvdocument.cpp | |
parent | 6388395cd3959459662a93cd3f2ca0576a4f3a5a (diff) | |
download | tdegraphics-0baef91f719d24223b99ebe18aa071aa5212208f.tar.gz tdegraphics-0baef91f719d24223b99ebe18aa071aa5212208f.zip |
Change to use c++11 unique_ptr instead of deprecated auto_ptr
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 0d168f7ecdd875e739d7e3fb0df7348bc5d7deb0)
Diffstat (limited to 'kghostview/kgvdocument.cpp')
-rw-r--r-- | kghostview/kgvdocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp index 3d9dad26..ae0742da 100644 --- a/kghostview/kgvdocument.cpp +++ b/kghostview/kgvdocument.cpp @@ -171,7 +171,7 @@ bool KGVDocument::uncompressFile() // If the file is gzipped, gunzip it to the temporary file _tmpUnzipped. kdDebug(4500) << "KGVDocument::uncompressFile()" << endl; - auto_ptr<TQIODevice> filterDev( KFilterDev::deviceForFile( _fileName, _mimetype, true ) ); + unique_ptr<TQIODevice> filterDev( KFilterDev::deviceForFile( _fileName, _mimetype, true ) ); if ( !filterDev.get() ) { KMimeType::Ptr mt = KMimeType::mimeType(_mimetype); if ( (_fileName.right( 3 ) == ".gz") || mt->is("application/x-gzip") ) { |