diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-21 21:50:36 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-01 12:36:51 -0800 |
commit | 90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee (patch) | |
tree | 42667ee8211853727c14645c05280e2500a7a994 /src/common/cxxstdio.hpp | |
parent | b3ca4bccc4fa6b7f5d637bdecb4fac6ca9649f3c (diff) | |
download | tmwa-90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee.tar.gz tmwa-90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee.tar.bz2 tmwa-90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee.tar.xz tmwa-90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee.zip |
Remove unnecessary includes, speeding up recompilation
Diffstat (limited to 'src/common/cxxstdio.hpp')
-rw-r--r-- | src/common/cxxstdio.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/common/cxxstdio.hpp b/src/common/cxxstdio.hpp index 866947c..96c3ca2 100644 --- a/src/common/cxxstdio.hpp +++ b/src/common/cxxstdio.hpp @@ -2,7 +2,7 @@ #define CXXSTDIO_HPP // cxxstdio.hpp - pass C++ types through scanf/printf // -// Copyright © 2011-2012 Ben Longbons <b.r.longbons@gmail.com> +// Copyright © 2011-2013 Ben Longbons <b.r.longbons@gmail.com> // // This file is part of The Mana World (Athena server) // @@ -19,15 +19,16 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -#include "utils2.hpp" +#include "sanity.hpp" #include <cstdarg> #include <cstdio> -#include <cstdlib> #include <string> #include "const_array.hpp" +#include "utils2.hpp" + namespace cxxstdio { @@ -213,14 +214,7 @@ namespace cxxstdio StringConverter(std::string& s) : out(s), mid(nullptr) {} - ~StringConverter() - { - if (mid) - { - out = mid; - free(mid); - } - } + ~StringConverter(); char **operator &() { return ∣ |