From 6ff2d84ade299cb3d14d4110e4cf1a4b8070c030 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Apr 2015 09:42:28 +0200 Subject: Various #include fixups rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90 --- sal/osl/unx/file_path_helper.cxx | 1 + sal/osl/unx/process_impl.cxx | 1 + sal/textenc/textenc.cxx | 1 + 3 files changed, 3 insertions(+) (limited to 'sal') diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx index 1ccd9bea484f..7f9e2fb8a692 100644 --- a/sal/osl/unx/file_path_helper.cxx +++ b/sal/osl/unx/file_path_helper.cxx @@ -23,6 +23,7 @@ #include #include #include +#include const sal_Unicode FPH_CHAR_PATH_SEPARATOR = (sal_Unicode)'/'; const sal_Unicode FPH_CHAR_DOT = (sal_Unicode)'.'; diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index 9a1ebd03f570..20cda833bf12 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -30,6 +30,7 @@ #include "osl/thread.h" #include "rtl/ustring.hxx" #include "rtl/strbuf.h" +#include "sal/log.hxx" #include "file_path_helper.hxx" diff --git a/sal/textenc/textenc.cxx b/sal/textenc/textenc.cxx index 94fe67de9ebe..99b3dbbe108e 100644 --- a/sal/textenc/textenc.cxx +++ b/sal/textenc/textenc.cxx @@ -33,6 +33,7 @@ #include "rtl/textenc.h" #include "rtl/ustring.h" #include "rtl/ustring.hxx" +#include "sal/log.hxx" #include "sal/macros.h" #include "sal/types.h" -- cgit