Kaydet (Commit) dfaa7d4d authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

Add missing sal/log.hxx headers

rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it.
This is a continuation of commit 6ff2d84a to be able to remove those unneeded includes.

This commit adds missing headers to every file found by:
grep -FwL sal/log.hxx $(git grep -Elw 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF|SAL_DETAIL_LOG_STREAM|SAL_WHERE|SAL_STREAM|SAL_DEBUG')
to directories from connectivity to cui

Change-Id: I9903c10d0a04bbeb93d0f776d1d252b152459499
Reviewed-on: https://gerrit.libreoffice.org/57408
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst a605762c
......@@ -31,6 +31,7 @@
#include <comphelper/numbers.hxx>
#include <comphelper/types.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -25,6 +25,7 @@
#include <comphelper/extract.hxx>
#include <com/sun/star/io/XInputStream.hpp>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
using namespace ::dbtools;
using namespace ::com::sun::star::sdbc;
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <connectivity/TTableHelper.hxx>
#include <com/sun/star/sdbc/XRow.hpp>
......
......@@ -77,6 +77,7 @@
#include <o3tl/any.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <cppuhelper/implbase.hxx>
#include <strings.hrc>
......
......@@ -36,6 +36,7 @@
#include <connectivity/ParameterCont.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
namespace dbtools
{
......
......@@ -31,6 +31,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <osl/diagnose.h>
#include <sal/log.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
......
......@@ -22,6 +22,7 @@
#include <ado/Awrapadox.hxx>
#include <comphelper/types.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
using namespace connectivity::ado;
......
......@@ -39,6 +39,7 @@
#include <component/CColumns.hxx>
#include <connectivity/sdbcx/VColumn.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <osl/thread.h>
#include <cppuhelper/queryinterface.hxx>
#include <svl/zforlist.hxx>
......
......@@ -24,6 +24,7 @@
#include <dbase/DTable.hxx>
#include <dbase/DIndexIter.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <tools/config.hxx>
#include <connectivity/CommonTools.hxx>
#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
......
......@@ -51,6 +51,7 @@
#include <connectivity/dbconversion.hxx>
#include <strings.hrc>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <cassert>
......
......@@ -23,6 +23,7 @@
#include <dbase/DIndex.hxx>
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <memory>
......
......@@ -26,6 +26,7 @@
#include "NStatement.hxx"
#include <connectivity/dbexception.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
using namespace connectivity::evoab;
using namespace dbtools;
......
......@@ -42,6 +42,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <o3tl/make_unique.hxx>
#include <rtl/string.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <unotools/syslocale.hxx>
#include <unotools/intlwrapper.hxx>
......
......@@ -20,6 +20,7 @@
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/FetchDirection.hpp>
......
......@@ -28,6 +28,7 @@
#include <com/sun/star/ucb/SortedDynamicResultSetFactory.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <tools/urlobj.hxx>
#include <sal/log.hxx>
#include <file/FDriver.hxx>
#include <file/FTable.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -36,6 +36,7 @@
#include <connectivity/dbconversion.hxx>
#include <connectivity/dbtools.hxx>
#include <cppuhelper/propshlp.hxx>
#include <sal/log.hxx>
#include <iterator>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/FetchDirection.hpp>
......
......@@ -24,6 +24,7 @@
#include <file/FDriver.hxx>
#include <file/FResultSet.hxx>
#include <osl/thread.h>
#include <sal/log.hxx>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/FetchDirection.hpp>
......
......@@ -19,6 +19,7 @@
#include <file/fcode.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <connectivity/sqlparse.hxx>
#include <sqlbison.hxx>
#include <i18nlangtag/mslangid.hxx>
......
......@@ -18,6 +18,7 @@
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <connectivity/dbexception.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <sal/log.hxx>
using namespace ::connectivity::firebird;
......
......@@ -53,6 +53,7 @@
#include <unotools/localfilehelper.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
using namespace connectivity::firebird;
using namespace connectivity;
......
......@@ -22,6 +22,7 @@
#include <ibase.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <FDatabaseMetaDataResultSet.hxx>
#include <com/sun/star/sdbc/ColumnValue.hpp>
......
......@@ -29,6 +29,7 @@
#include <osl/file.hxx>
#include <osl/process.h>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
#include <unotools/localfilehelper.hxx>
using namespace com::sun::star;
......
......@@ -28,6 +28,7 @@
#include <propertyids.hxx>
#include <time.h>
#include <connectivity/dbtools.hxx>
#include <sal/log.hxx>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
......
......@@ -28,6 +28,7 @@
#include <propertyids.hxx>
#include <rtl/string.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <time.h>
#include <TConnection.hxx>
......
......@@ -25,6 +25,8 @@
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <sal/log.hxx>
using namespace connectivity::firebird;
using namespace com::sun::star::lang;
......
......@@ -27,6 +27,7 @@
#include <cppuhelper/queryinterface.hxx>
#include <osl/thread.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
......
......@@ -22,6 +22,7 @@
#include "StatementCommonBase.hxx"
#include "Util.hxx"
#include <sal/log.hxx>
#include <comphelper/sequence.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <propertyids.hxx>
......
......@@ -14,6 +14,7 @@
#include <TConnection.hxx>
#include <sal/log.hxx>
#include <comphelper/sequence.hxx>
#include <connectivity/dbtools.hxx>
......
......@@ -10,6 +10,7 @@
#include "Util.hxx"
#include <rtl/ustrbuf.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
using namespace ::connectivity;
......
......@@ -27,6 +27,7 @@
#include <osl/thread.h>
#include <svl/zforlist.hxx>
#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <comphelper/numbers.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -35,6 +35,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <resource/sharedresources.hxx>
......
......@@ -22,6 +22,7 @@
#include <hsqldb/HDriver.hxx>
#include <hsqldb/HConnection.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <connectivity/dbexception.hxx>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/sdbc/DriverManager.hpp>
......
......@@ -25,6 +25,7 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <sal/log.hxx>
#include <uno/mapping.hxx>
#include <algorithm>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <hsqldb/HStorageMap.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
using namespace ::com::sun::star::container;
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <java/io/InputStream.hxx>
......
......@@ -24,6 +24,7 @@
#include <java/sql/Connection.hxx>
#include <java/util/Property.hxx>
#include <java/tools.hxx>
#include <sal/log.hxx>
#include <connectivity/dbexception.hxx>
#include <jvmfwk/framework.hxx>
#include <strings.hrc>
......
......@@ -25,6 +25,7 @@
#include <com/sun/star/lang/NullPointerException.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <strings.hrc>
#include <comphelper/processfactory.hxx>
......
......@@ -23,6 +23,7 @@
#include <officecfg/Office/DataAccess.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <algorithm>
#include <functional>
......
......@@ -15,6 +15,7 @@
#include "MorkParser.hxx"
#include <connectivity/dbexception.hxx>
#include <sal/log.hxx>
#include <strings.hrc>
......
......@@ -12,6 +12,7 @@
#include <com/sun/star/sdbc/TransactionIsolation.hpp>
#include <com/sun/star/sdbc/ColumnSearch.hpp>
#include <sal/log.hxx>
#include <strings.hrc>
#include <vector>
......
......@@ -22,6 +22,8 @@ static ::osl::Mutex m_aMetaMutex;
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/sdb/ErrorCondition.hpp>
#include <sal/log.hxx>
#include "MorkParser.hxx"
using namespace connectivity;
......
......@@ -12,6 +12,8 @@
#include <com/sun/star/mozilla/XMozillaBootstrap.hpp>
#include <sal/log.hxx>
using namespace connectivity::mork;
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_sdbc_MorkDriver_get_implementation(
......
......@@ -12,6 +12,7 @@
#include "MResultSetMetaData.hxx"
#include <connectivity/dbtools.hxx>
#include <com/sun/star/sdbc/ColumnValue.hpp>
#include <sal/log.hxx>
using namespace ::comphelper;
using namespace connectivity;
......
......@@ -33,6 +33,7 @@
#include <strings.hrc>
#include <unotools/textsearch.hxx>
#include <sal/log.hxx>
using namespace connectivity::mork;
using namespace connectivity;
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbcx/CompareBookmark.hpp>
#include <connectivity/dbtools.hxx>
#include <sal/log.hxx>
#include <vector>
#include <algorithm>
......
......@@ -19,6 +19,7 @@
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <comphelper/processfactory.hxx>
#include <connectivity/dbexception.hxx>
......
......@@ -2,6 +2,7 @@
#include "MorkParser.hxx"
#include <iostream>
#include <sal/log.hxx>
bool openAddressBook(const std::string& path)
{
......
......@@ -19,6 +19,7 @@
#include "MNSINIParser.hxx"
#include <rtl/byteseq.hxx>
#include <sal/log.hxx>
IniParser::IniParser(OUString const & rIniName)
{
......
......@@ -29,6 +29,7 @@
#include <TPrivilegesResultSet.hxx>
#include <connectivity/dbexception.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
using namespace connectivity::odbc;
using namespace com::sun::star::uno;
......
......@@ -35,6 +35,7 @@
#include <comphelper/types.hxx>
#include <connectivity/dbtools.hxx>
#include <connectivity/dbexception.hxx>
#include <sal/log.hxx>
using namespace ::comphelper;
using namespace connectivity;
......
......@@ -24,6 +24,7 @@
#include <osl/endian.h>
#include <odbc/OConnection.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <string.h>
#include <string>
......
......@@ -54,6 +54,7 @@
#include <rtl/strbuf.hxx>
#include <rtl/uuid.h>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
#include <o3tl/enumarray.hxx>
#include <osl/module.h>
......
......@@ -39,6 +39,7 @@
#include <o3tl/any.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XComponent.hpp>
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <tools/urlobj.hxx>
#include <sal/log.hxx>
#include <component/CPreparedStatement.hxx>
#include <component/CStatement.hxx>
#include <unotools/pathoptions.hxx>
......
......@@ -28,6 +28,7 @@
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <writer/WConnection.hxx>
#include <connectivity/sdbcx/VColumn.hxx>
#include <sal/log.hxx>
namespace com
{
......
......@@ -45,6 +45,7 @@
#include "connectivity/dbconversion.hxx"
#include <rtl/ustrbuf.hxx>
#include <sal/macros.h>
#include <sal/log.hxx>
#if defined _MSC_VER
#pragma warning(push)
......
......@@ -37,6 +37,7 @@
#include <comphelper/types.hxx>
#include <connectivity/dbmetadata.hxx>
#include <com/sun/star/sdb/SQLFilterOperator.hpp>
#include <sal/log.hxx>
#include <iterator>
#include <memory>
......
......@@ -56,6 +56,7 @@
#include <functional>
#include <memory>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::util;
......
......@@ -18,6 +18,7 @@
*/
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <com/sun/star/io/IOException.hpp>
#include <osl/process.h>
......
......@@ -30,6 +30,7 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/utils/canvastools.hxx>
#include <sal/log.hxx>
#include "cachedprimitivebase.hxx"
#include "bitmapaction.hxx"
#include <outdevstate.hxx>
......
......@@ -25,6 +25,7 @@
#include <cppcanvas/canvas.hxx>
#include "cachedprimitivebase.hxx"
#include <sal/log.hxx>
using namespace ::com::sun::star;
......
......@@ -38,6 +38,7 @@
#include <implrenderer.hxx>
#include "emfpbrush.hxx"
#include "emfppath.hxx"
#include <sal/log.hxx>
namespace cppcanvas
{
......
......@@ -34,6 +34,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
......
......@@ -34,6 +34,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
#include "emfpfont.hxx"
......
......@@ -38,6 +38,7 @@
#include <implrenderer.hxx>
#include <vcl/graphicfilter.hxx>
#include "emfpimage.hxx"
#include <sal/log.hxx>
namespace cppcanvas
......
......@@ -37,6 +37,7 @@
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <vcl/canvastools.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/rendering/PanoseWeight.hpp>
......
......@@ -34,6 +34,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
#include "emfppath.hxx"
......
......@@ -34,6 +34,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
#include "emfppen.hxx"
......
......@@ -34,6 +34,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
#include "emfpregion.hxx"
......
......@@ -20,6 +20,7 @@
#include <com/sun/star/rendering/XCanvas.hpp>
#include <vcl/canvastools.hxx>
#include <implrenderer.hxx>
#include <sal/log.hxx>
#include "emfpstringformat.hxx"
namespace cppcanvas
......
......@@ -63,6 +63,7 @@
#include <tools.hxx>
#include <outdevstate.hxx>
#include <action.hxx>
#include <sal/log.hxx>
#include "bitmapaction.hxx"
#include "lineaction.hxx"
#include "pointaction.hxx"
......
......@@ -30,6 +30,7 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/utils/canvastools.hxx>
#include <canvas/canvastools.hxx>
#include <sal/log.hxx>
#include <cppcanvas/canvas.hxx>
......
......@@ -21,6 +21,7 @@
#include <com/sun/star/rendering/XCanvas.hpp>
#include <sal/types.h>
#include <sal/log.hxx>
#include <vcl/canvastools.hxx>
#include <basegfx/range/b2drange.hxx>
......
......@@ -30,6 +30,7 @@
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <canvas/canvastools.hxx>
#include <sal/log.hxx>
#include "cachedprimitivebase.hxx"
#include "polypolyaction.hxx"
......
......@@ -40,6 +40,7 @@
#include <basegfx/utils/canvastools.hxx>
#include <canvas/canvastools.hxx>
#include <memory>
#include <sal/log.hxx>
#include "textaction.hxx"
#include <outdevstate.hxx>
......
......@@ -47,6 +47,7 @@
#include <basegfx/tuple/b2dtuple.hxx>
#include <basegfx/utils/canvastools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <sal/log.hxx>
#include "transparencygroupaction.hxx"
#include <outdevstate.hxx>
......
......@@ -22,6 +22,7 @@
#include <osl/conditn.hxx>
#include <osl/mutex.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <cppu/Enterable.hxx>
#include <cppu/helper/purpenv/Environment.hxx>
......
......@@ -21,6 +21,7 @@
#include <cppu/helper/purpenv/Environment.hxx>