From 1cdf33d7485ec45c9ddcfcf7d1445f5b0a69dfec Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 25 Feb 2024 10:21:26 +0600 Subject: Simplify boost includes, and drop unneeded warning suppression Likely obsoleted by commit 046e9545956d8ad1d69345d6b4a4c0a33714d179 (Try to revert to use of file_iterator from boost on Windows, 2023-11-01). Change-Id: Icddb21203755845f6d3c46ba168fb51443f04251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163896 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sdext/source/pdfimport/pdfparse/pdfparse.cxx | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index 1a78fde79de1..34424b9ec320 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -20,18 +20,7 @@ #include -// boost using obsolete stuff -#if defined(_MSC_VER) -#pragma warning(push) -#pragma warning(disable:4996) -#pragma warning(disable:4503) -#endif - -// workaround windows compiler: do not include multi_pass.hpp -#include -#include -#include -#include +#include #include #include @@ -44,14 +33,6 @@ #include #include -// disable warnings again because someone along the line has enabled them -// (we have included boost headers, what did you expect?) -#if defined(_MSC_VER) -#pragma warning(push) -#pragma warning(disable:4996) -#pragma warning(disable:4503) -#endif - using namespace boost::spirit::classic; using namespace pdfparse; @@ -631,8 +612,4 @@ std::unique_ptr PDFReader::read(std::u16string_view aFileName) return pRet; } -#if defined(_MSC_VER) -#pragma warning(pop) -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit