summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-04-01 02:00:43 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-05-21 09:27:05 +0200
commitafb764f83bd9e01e052608db87250d64503d4b9d (patch)
tree86f2bfb8bbd4f0a75d31c294916c8faa6f6f9f3a /i18nlangtag
parenta7d66f9fa6928080f9ebb61a1414b59b3b6b7ff9 (diff)
tdf#42949 Fix IWYU warnings in i18nlangtag/
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I8a40dc89e121bd121c1f90f5636eee65636cad17 Reviewed-on: https://gerrit.libreoffice.org/72014 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/IwyuFilter_i18nlangtag.yaml2
-rw-r--r--i18nlangtag/qa/cppunit/test_languagetag.cxx3
-rw-r--r--i18nlangtag/source/isolang/inunx.cxx5
-rw-r--r--i18nlangtag/source/isolang/inwnt.cxx2
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx2
-rw-r--r--i18nlangtag/source/isolang/mslangid.cxx1
6 files changed, 5 insertions, 10 deletions
diff --git a/i18nlangtag/IwyuFilter_i18nlangtag.yaml b/i18nlangtag/IwyuFilter_i18nlangtag.yaml
new file mode 100644
index 000000000000..5b58117440f0
--- /dev/null
+++ b/i18nlangtag/IwyuFilter_i18nlangtag.yaml
@@ -0,0 +1,2 @@
+---
+assumeFilename: i18nlangtag/source/isolang/isolang.cxx
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index 2a22924e33d5..595fd92370e7 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -18,9 +18,6 @@
#include <i18nlangtag/languagetag.hxx>
#include <rtl/ustring.hxx>
-#include <rtl/ustrbuf.hxx>
-#include <sal/log.hxx>
-#include <osl/file.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
diff --git a/i18nlangtag/source/isolang/inunx.cxx b/i18nlangtag/source/isolang/inunx.cxx
index 4c0146772f53..ce9ea5ee83e9 100644
--- a/i18nlangtag/source/isolang/inunx.cxx
+++ b/i18nlangtag/source/isolang/inunx.cxx
@@ -18,20 +18,19 @@
*/
#include <stdlib.h>
-#include <stdio.h>
#ifdef MACOSX
#include <osl/process.h>
#include <rtl/locale.h>
#include <rtl/ustring.hxx>
+#include <i18nlangtag/languagetag.hxx>
#else // MACOSX
#include <rtl/string.hxx>
#endif // MACOSX
#include <osl/mutex.hxx>
-#include <rtl/instance.hxx>
-#include <i18nlangtag/languagetag.hxx>
+#include <osl/doublecheckedlocking.h>
#include <i18nlangtag/mslangid.hxx>
diff --git a/i18nlangtag/source/isolang/inwnt.cxx b/i18nlangtag/source/isolang/inwnt.cxx
index a96cc67bb5cb..76fe58b04917 100644
--- a/i18nlangtag/source/isolang/inwnt.cxx
+++ b/i18nlangtag/source/isolang/inwnt.cxx
@@ -24,7 +24,7 @@
#include <winbase.h>
#include <winnls.h>
#include <osl/mutex.hxx>
-#include <rtl/instance.hxx>
+#include <osl/doublecheckedlocking.h>
#include <i18nlangtag/mslangid.hxx>
static LanguageType nImplSystemLanguage = LANGUAGE_DONTKNOW;
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index d095542c8229..97b4f8c29a09 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -19,8 +19,6 @@
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
-#include <rtl/ustrbuf.hxx>
-#include <rtl/strbuf.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx
index 3ed50cdd80e2..0d76ba3b8288 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -19,7 +19,6 @@
#include <sal/config.h>
#include <rtl/ustring.hxx>
-#include <rtl/string.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <i18nlangtag/mslangid.hxx>