Kaydet (Commit) 82828c6c 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 test to vbahelper

Change-Id: Ia7f773511624099505d6a36a8d6e23c0cde4a737
Reviewed-on: https://gerrit.libreoffice.org/58225
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst bf342011
......@@ -14,6 +14,7 @@
#include <vcl/errinf.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -12,6 +12,7 @@
#include <cppunit/Protector.h>
#include <cppunittester/protectorfactory.hxx>
#include <sal/types.h>
#include <sal/log.hxx>
#include <test/setupvcl.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/threadpool.hxx>
......
......@@ -20,6 +20,7 @@
#include <toolkit/awt/vclxtabpagecontainer.hxx>
#include <com/sun/star/awt/tab/XTabPageModel.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <sal/log.hxx>
#include <vcl/image.hxx>
#include <vcl/tabpage.hxx>
#include <vcl/tabctrl.hxx>
......
......@@ -55,6 +55,7 @@
#include <osl/mutex.hxx>
#include <rtl/uuid.h>
#include <rtl/process.h>
#include <sal/log.hxx>
#include <tools/link.hxx>
#include <tools/fract.hxx>
#include <tools/wintypes.hxx>
......
......@@ -45,6 +45,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <rtl/uuid.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <tools/color.hxx>
......
......@@ -38,6 +38,7 @@
#include <com/sun/star/awt/XItemList.hpp>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/processfactory.hxx>
#include <sal/log.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
......
......@@ -54,6 +54,7 @@
#include <algorithm>
#include <tools/urlobj.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <toolkit/controls/dialogcontrol.hxx>
#include <helper/tkresmgr.hxx>
......
......@@ -34,6 +34,7 @@
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <vector>
......
......@@ -30,6 +30,7 @@
#include <cppuhelper/queryinterface.hxx>
#include <rtl/uuid.h>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
......
......@@ -33,6 +33,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <rtl/uuid.h>
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <tools/date.hxx>
#include <tools/time.hxx>
......
......@@ -57,6 +57,7 @@
#include <tools/diagnose_ex.h>
#include <tools/date.hxx>
#include <tools/time.hxx>
#include <sal/log.hxx>
#include <algorithm>
......
......@@ -21,6 +21,7 @@
#include <vcl/button.hxx>
#include <helper/btndlg.hxx>
#include <sal/log.hxx>
struct ImplBtnDlgItem
......
......@@ -18,6 +18,7 @@
*/
#include <tools/datetime.hxx>
#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <systemdatetime.hxx>
......
......@@ -24,6 +24,7 @@
#include <memory>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
......
......@@ -20,6 +20,7 @@
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include "provprox.hxx"
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
......
......@@ -24,6 +24,7 @@
*************************************************************************/
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/propertysequence.hxx>
......
......@@ -27,6 +27,7 @@
#include <memory>
#include <list>
#include <unordered_map>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <rtl/ref.hxx>
......
......@@ -47,6 +47,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <config_oauth2.h>
#include <o3tl/runtimetooustring.hxx>
#include <sal/log.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/contentidentifier.hxx>
......
......@@ -25,6 +25,7 @@
#include <config_oauth2.h>
#include <rtl/uri.hxx>
#include <sal/log.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/commandenvironment.hxx>
#include <ucbhelper/contentidentifier.hxx>
......
......@@ -20,6 +20,7 @@
#include <rtl/uri.hxx>
#include <osl/mutex.hxx>
#include <sal/log.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
......
......@@ -41,6 +41,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/uri.hxx>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <algorithm>
......
......@@ -30,6 +30,7 @@
#include <ucbhelper/propertyvalueset.hxx>
#include <tools/diagnose_ex.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <memory>
#include <vector>
......
......@@ -19,6 +19,7 @@
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <osl/file.hxx>
#include <osl/diagnose.h>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/ucb/UnsupportedCommandException.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/io/IOException.hpp>
......
......@@ -21,6 +21,8 @@
#include "prov.hxx"
#include "filprp.hxx"
#include <sal/log.hxx>
using namespace fileaccess;
using namespace com::sun::star;
using namespace com::sun::star::uno;
......
......@@ -24,6 +24,8 @@
#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <sal/log.hxx>
using namespace fileaccess;
using namespace com::sun::star;
using namespace css::uno;
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/ucb/ListenerAlreadySetException.hpp>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/IOException.hpp>
......
......@@ -20,6 +20,7 @@
#include <config_features.h>
#include <sal/config.h>
#include <sal/log.hxx>
#if HAVE_FEATURE_MACOSX_SANDBOX
#include <sys/stat.h>
......
......@@ -20,6 +20,7 @@
#include <osl/security.hxx>
#include <osl/file.hxx>
#include <osl/socket.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/ucb/FileSystemNotation.hpp>
......
......@@ -24,6 +24,7 @@
*************************************************************************/
#include <sal/config.h>
#include <sal/log.hxx>
#include <cstring>
#include <vector>
......
......@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <sal/macros.h>
#include <osl/time.h>
#include <sal/log.hxx>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
......
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/log.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/contenthelper.hxx>
#include <com/sun/star/ucb/ContentCreationException.hpp>
......
......@@ -31,6 +31,7 @@
#include <ne_xml.h>
#include "LockSequence.hxx"
#include <memory>
#include <sal/log.hxx>
using namespace webdav_ucp;
using namespace com::sun::star;
......
......@@ -27,6 +27,7 @@
************************************************************************/
#include <osl/mutex.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include "NeonHeadRequest.hxx"
......
......@@ -31,6 +31,7 @@
#include <rtl/ustring.hxx>
#include <osl/time.h>
#include <osl/thread.hxx>
#include <sal/log.hxx>
#include <salhelper/thread.hxx>
#include "NeonSession.hxx"
#include "NeonLockStore.hxx"
......
......@@ -29,6 +29,7 @@
#include <osl/mutex.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include "NeonSession.hxx"
#include "NeonTypes.hxx"
#include "DAVException.hxx"
......
......@@ -30,6 +30,7 @@
#include <unordered_map>
#include <vector>
#include <string.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <osl/time.h>
#include <rtl/string.h>
......
......@@ -30,6 +30,7 @@
#include <string.h>
#include <ne_xml.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "UCBDeadPropertyValue.hxx"
#include <memory>
......
......@@ -37,6 +37,7 @@
#include <osl/diagnose.h>
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <officecfg/Inet.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
......
......@@ -33,6 +33,7 @@
*************************************************************************/
#include <sal/log.hxx>
#include <o3tl/make_unique.hxx>
#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
#include <com/sun/star/ucb/OpenMode.hpp>
......
......@@ -26,6 +26,8 @@
#include "webdavprovider.hxx"
#include "ContentProperties.hxx"
#include <sal/log.hxx>
using namespace com::sun::star;
using namespace http_dav_ucp;
......
......@@ -23,6 +23,7 @@
#include <ucbhelper/simpleauthenticationrequest.hxx>
#include <comphelper/seekableinput.hxx>
#include <sal/log.hxx>
#include "DAVAuthListenerImpl.hxx"
#include "DAVResourceAccess.hxx"
......
......@@ -25,6 +25,7 @@
#include "webdavresponseparser.hxx"
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
namespace http_dav_ucp
{
......
......@@ -18,6 +18,7 @@
*/
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <osl/time.h>
#include <osl/thread.hxx>
#include "SerfSession.hxx"
......
......@@ -18,6 +18,7 @@
*/
#include "SerfRequestProcessorImpl.hxx"
#include <sal/log.hxx>
namespace
{
......
......@@ -20,6 +20,7 @@
#include <vector>
#include <string.h>
#include <rtl/string.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <ucbhelper/simplecertificatevalidationrequest.hxx>
......
......@@ -19,6 +19,7 @@
#include <string.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "UCBDeadPropertyValue.hxx"
using namespace http_dav_ucp;
......
......@@ -21,6 +21,7 @@
#include <osl/diagnose.h>
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
#include <ucbhelper/simpleinteractionrequest.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <memory>
#include <utility>
......
......@@ -29,6 +29,7 @@
#include <com/sun/star/ucb/Lock.hpp>
#include <map>
#include <unordered_map>
#include <sal/log.hxx>
using namespace com::sun::star;
......
......@@ -22,6 +22,7 @@
#include <codemaker/global.hxx>
#include <rtl/ustring.hxx>
#include <rtl/process.h>
#include <sal/log.hxx>
#include <options.hxx>
namespace unodevtools {
......
......@@ -8,6 +8,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <map>
#include <vector>
......
......@@ -8,6 +8,7 @@
*/
#include <sal/config.h>
#include <sal/log.hxx>
#include <set>
#include <vector>
......
......@@ -22,6 +22,7 @@
#include <unotools/configitem.hxx>
#include <unotools/syslocale.hxx>
#include <tools/debug.hxx>
#include <sal/log.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
......
......@@ -32,6 +32,7 @@
#include <rtl/instance.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <unotools/configitem.hxx>
#include <unotools/configmgr.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -21,6 +21,7 @@
#include <unotools/configpaths.hxx>
#include <tools/diagnose_ex.h>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <com/sun/star/container/XHierarchicalName.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
......
......@@ -29,6 +29,7 @@
#include <o3tl/enumrange.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "itemholder1.hxx"
......
......@@ -34,6 +34,7 @@
#include <rtl/instance.hxx>
#include <osl/diagnose.h>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <string.h>
#include <list>
......
......@@ -44,6 +44,7 @@
#include <unotools/viewoptions.hxx>
#include <unotools/options.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <sal/log.hxx>
ItemHolder1::ItemHolder1()
: ItemHolderMutexBase()
......
......@@ -26,6 +26,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <unotools/configpaths.hxx>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
......
......@@ -20,6 +20,7 @@
#include "ucblockbytes.hxx"
#include <sal/macros.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <salhelper/condition.hxx>
#include <osl/thread.hxx>
......
......@@ -19,6 +19,7 @@
#include <rtl/ref.hxx>
#include <rtl/byteseq.hxx>
#include <sal/log.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
#include <comphelper/seqstream.hxx>
......
......@@ -24,6 +24,7 @@
#include <memory>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <com/sun/star/xml/dom/DOMException.hpp>
#include <com/sun/star/xml/dom/events/XMutationEvent.hpp>
......
......@@ -31,6 +31,7 @@
#include <rtl/alloc.h>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase.hxx>
......
......@@ -23,6 +23,7 @@
#include <cppuhelper/implbase.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include "element.hxx"
#include "document.hxx"
......
......@@ -30,6 +30,7 @@
#include <rtl/instance.hxx>
#include <osl/mutex.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <com/sun/star/xml/sax/FastToken.hpp>
......
......@@ -28,6 +28,7 @@
#include <libxml/xpathInternals.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "nodelist.hxx"
#include "xpathobject.hxx"
......
......@@ -37,6 +37,7 @@
#include <vcl/errinf.hxx>
#include <vcl/abstdlg.hxx>
#include <vcl/svapp.hxx>
#include <sal/log.hxx>
#include "authfallbackdlg.hxx"
#include <strings.hrc>
......
......@@ -61,6 +61,7 @@
#include <com/sun/star/loader/CannotActivateFactoryException.hpp>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <osl/conditn.hxx>
#include <unotools/resmgr.hxx>
#include <vcl/errinf.hxx>
......
......@@ -18,6 +18,7 @@
*/
#include <cppuhelper/implementationentry.hxx>
#include <comphelper/servicedecl.hxx>
#include <sal/log.hxx>
#include "service.hxx"
......
......@@ -28,6 +28,7 @@
#include <ooo/vba/msforms/fmEnterFieldBehavior.hpp>
#include <ooo/vba/msforms/fmListStyle.hpp>
#include <ooo/vba/msforms/fmTextAlign.hpp>
#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
......
......@@ -19,6 +19,7 @@
#include "vbatogglebutton.hxx"
#include "vbanewfont.hxx"
#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
......
......@@ -30,6 +30,7 @@
#include <basic/sbstar.hxx>
#include <basic/sbmeth.hxx>
#include "vbacontrols.hxx"
#include <sal/log.hxx>
using namespace ::ooo::vba;
using namespace ::com::sun::star;
......
......@@ -23,6 +23,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <ooo/vba/office/MsoBarType.hpp>
#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
......
......@@ -20,6 +20,7 @@
#include "vbacommandbarcontrols.hxx"
#include <vbahelper/vbahelper.hxx>
#include <filter/msfilter/msvbahelper.hxx>
#include <sal/log.hxx>
using namespace com::sun::star;
using namespace ooo::vba;
......
......@@ -30,6 +30,7 @@
#include <comphelper/random.hxx>
#include <vbahelper/vbahelper.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <time.h>
#include <map>
......
......@@ -38,6 +38,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <tools/urlobj.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::ooo::vba;
......
......@@ -29,6 +29,7 @@
#include <filter/msfilter/msvbahelper.hxx>
#include <unotools/eventcfg.hxx>
#include <vbahelper/vbahelper.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star;
using namespace ::ooo::vba;
......
......@@ -63,6 +63,7 @@
#include <sfx2/viewsh.hxx>
#include <math.h>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <toolkit/awt/vclxwindow.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/window.hxx>
......