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;