X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fremember.cpp;h=369ddd0bc68d2eefee32b533db856edbc8d2093f;hp=faa89d383defbcd4eebe5c194bc58182d0a74c50;hb=073bf40a73e419a3dbcb6dfa190947ce2cc3bdce;hpb=83a7ee99a947cbbf331018b803ad6be43a9ccd45 diff --git a/ginac/remember.cpp b/ginac/remember.cpp index faa89d38..369ddd0b 100644 --- a/ginac/remember.cpp +++ b/ginac/remember.cpp @@ -4,7 +4,7 @@ * in GiNaC functions */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,12 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - #include "function.h" #include "utils.h" #include "remember.h" +#include + namespace GiNaC { ////////// @@ -183,8 +183,8 @@ void remember_table::init_table() std::vector & remember_table::remember_tables() { - static std::vector * rt = new std::vector; - return *rt; + static std::vector rt = std::vector(); + return rt; } } // namespace GiNaC