From 968f5f42010dc1e2694186a6e59af6fcc288ec4d Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 26 Jun 2010 12:33:55 +0200 Subject: [PATCH] auto_ptr is deprecated --- src/conky.cc | 2 +- src/conky.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conky.cc b/src/conky.cc index 023a495f..7d25de4b 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -481,7 +481,7 @@ long global_text_lines; static int total_updates; static int updatereset; -std::auto_ptr state; +std::unique_ptr state; void set_updatereset(int i) { diff --git a/src/conky.h b/src/conky.h index b6aa71bd..65258349 100644 --- a/src/conky.h +++ b/src/conky.h @@ -349,7 +349,7 @@ void free_and_zero(T *&ptr) { } } -extern std::auto_ptr state; +extern std::unique_ptr state; extern int argc_copy; extern char** argv_copy;