From 90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 21 Jan 2013 21:50:36 -0800 Subject: Remove unnecessary includes, speeding up recompilation --- src/common/cxxstdio.hpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/common/cxxstdio.hpp') 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 +// Copyright © 2011-2013 Ben Longbons // // 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 . -#include "utils2.hpp" +#include "sanity.hpp" #include #include -#include #include #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 ∣ -- cgit v1.2.3-60-g2f50