summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2022-01-22 14:34:09 +0900
committerSlávek Banko <[email protected]>2022-01-22 19:00:03 +0100
commit0baef91f719d24223b99ebe18aa071aa5212208f (patch)
treefa1ce92099fe9d5ec8978149aa29265200d0ee6f /tdefile-plugins
parent6388395cd3959459662a93cd3f2ca0576a4f3a5a (diff)
downloadtdegraphics-0baef91f719d24223b99ebe18aa071aa5212208f.tar.gz
tdegraphics-0baef91f719d24223b99ebe18aa071aa5212208f.zip
Change to use c++11 unique_ptr instead of deprecated auto_ptr
Signed-off-by: OBATA Akio <[email protected]> (cherry picked from commit 0d168f7ecdd875e739d7e3fb0df7348bc5d7deb0)
Diffstat (limited to 'tdefile-plugins')
-rw-r--r--tdefile-plugins/ps/gscreator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdefile-plugins/ps/gscreator.cpp b/tdefile-plugins/ps/gscreator.cpp
index c664947b..88601a4c 100644
--- a/tdefile-plugins/ps/gscreator.cpp
+++ b/tdefile-plugins/ps/gscreator.cpp
@@ -241,7 +241,7 @@ bool GSCreator::create(const TQString &path, int width, int height, TQImage &img
char translation[64] = "";
char pagesize[32] = "";
char resopt[32] = "";
- std::auto_ptr<KDSCBBOX> bbox = dsc.bbox();
+ std::unique_ptr<KDSCBBOX> bbox = dsc.bbox();
if (is_encapsulated) {
// GhostScript's rendering at the extremely low resolutions
// required for thumbnails leaves something to be desired. To