diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-02 02:13:59 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-06 09:12:37 +0200 |
commit | 280a8aca27af8cea3a532900809b251fa353cd52 (patch) | |
tree | ffaf41b4bbc185092fe157c332371cd8451ad85f /vespalib | |
parent | 058c307d819e3955a39e01658c57e8c75b9dc6bb (diff) |
Include stringfmt where it was needed.
Diffstat (limited to 'vespalib')
5 files changed, 6 insertions, 9 deletions
diff --git a/vespalib/src/tests/exception_classes/exception_classes_test.cpp b/vespalib/src/tests/exception_classes/exception_classes_test.cpp index 946c3fa32e4..a418cb421ed 100644 --- a/vespalib/src/tests/exception_classes/exception_classes_test.cpp +++ b/vespalib/src/tests/exception_classes/exception_classes_test.cpp @@ -1,6 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/vespalib/util/exceptions.h> +#include <vespa/vespalib/util/stringfmt.h> using namespace vespalib; diff --git a/vespalib/src/vespa/vespalib/io/fileutil.cpp b/vespalib/src/vespa/vespalib/io/fileutil.cpp index c9778971efd..2e3994d329f 100644 --- a/vespalib/src/vespa/vespalib/io/fileutil.cpp +++ b/vespalib/src/vespa/vespalib/io/fileutil.cpp @@ -1,16 +1,12 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "fileutil.h" - -#include <errno.h> -#include <ostream> -#include <sys/stat.h> -#include <sys/types.h> -#include <unistd.h> #include <vespa/vespalib/util/exceptions.h> -#include <vespa/vespalib/util/error.h> #include <vespa/vespalib/stllike/asciistream.h> +#include <vespa/vespalib/util/stringfmt.h> #include <vespa/fastos/file.h> +#include <ostream> +#include <sys/stat.h> #include <vespa/log/log.h> LOG_SETUP(".vespalib.io.fileutil"); diff --git a/vespalib/src/vespa/vespalib/objects/nbostream.cpp b/vespalib/src/vespa/vespalib/objects/nbostream.cpp index ec04ffb8b3b..e37399bdfcc 100644 --- a/vespalib/src/vespa/vespalib/objects/nbostream.cpp +++ b/vespalib/src/vespa/vespalib/objects/nbostream.cpp @@ -2,7 +2,7 @@ #include "nbostream.hpp" #include "hexdump.h" #include <vespa/vespalib/util/exceptions.h> - +#include <vespa/vespalib/util/stringfmt.h> namespace vespalib { diff --git a/vespalib/src/vespa/vespalib/util/exception.h b/vespalib/src/vespa/vespalib/util/exception.h index 44911ea5555..05f48295bfa 100644 --- a/vespalib/src/vespa/vespalib/util/exception.h +++ b/vespalib/src/vespa/vespalib/util/exception.h @@ -5,7 +5,6 @@ #include <vespa/vespalib/util/macro.h> #include <vespa/vespalib/util/error.h> -#include <vespa/vespalib/util/stringfmt.h> #include <exception> #define VESPALIB_EXCEPTION_USEBACKTRACES diff --git a/vespalib/src/vespa/vespalib/util/exceptions.h b/vespalib/src/vespa/vespalib/util/exceptions.h index 65d17baf654..ca05dac107f 100644 --- a/vespalib/src/vespa/vespalib/util/exceptions.h +++ b/vespalib/src/vespa/vespalib/util/exceptions.h @@ -13,6 +13,7 @@ #pragma once #include <vespa/vespalib/util/exception.h> +#include <vespa/vespalib/util/stringfmt.h> namespace vespalib { |