accessibility/inc/helper/accresmgr.hxx | 1 - accessibility/source/inc/floatingwindowaccessible.hxx | 2 +- basctl/qa/unit/basctl-dialogs-test.cxx | 4 +--- basctl/source/basicide/breakpoint.hxx | 7 +++---- basic/source/classes/sbintern.cxx | 6 +++--- basic/source/inc/eventatt.hxx | 2 +- basic/source/inc/sbxmod.hxx | 2 +- solenv/clang-format/blacklist | 7 ------- 8 files changed, 10 insertions(+), 21 deletions(-)
New commits: commit a8487acabd5d3896e3b5ae6a0afd9da500f35edb Author: Muhammet Kara <muhammet.k...@collabora.com> AuthorDate: Sun Feb 16 10:27:48 2020 +0300 Commit: Muhammet Kara <muhammet.k...@collabora.com> CommitDate: Sun Feb 16 11:04:43 2020 +0100 clang-format accessibility & basctl with under 5-percent lines of change Files which could become clang-format conformant with under 5-percent lines of change relative to the total count of lines in the file are found by using bin/find-clang-format.py, and fixed with /opt/lo/bin/clang-format -i <path-of-the-file> There will be follow-up patches to fix all 'under-5-percent' files. Change-Id: Idc890cac4bb6aed4e36c3556a2abc0744fd086df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88770 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.k...@collabora.com> diff --git a/accessibility/inc/helper/accresmgr.hxx b/accessibility/inc/helper/accresmgr.hxx index e60caddfc5a7..5b16c47e8166 100644 --- a/accessibility/inc/helper/accresmgr.hxx +++ b/accessibility/inc/helper/accresmgr.hxx @@ -23,5 +23,4 @@ OUString AccResId(const char* pId); - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/accessibility/source/inc/floatingwindowaccessible.hxx b/accessibility/source/inc/floatingwindowaccessible.hxx index 1a7cb4008458..c36e862360c7 100644 --- a/accessibility/source/inc/floatingwindowaccessible.hxx +++ b/accessibility/source/inc/floatingwindowaccessible.hxx @@ -26,7 +26,7 @@ class FloatingWindowAccessible final : public VCLXAccessibleComponent public: using VCLXAccessibleComponent::VCLXAccessibleComponent; - virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet ) override; + virtual void FillAccessibleRelationSet(utl::AccessibleRelationSetHelper& rRelationSet) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/qa/unit/basctl-dialogs-test.cxx b/basctl/qa/unit/basctl-dialogs-test.cxx index a719e5c1ae22..b907681f629d 100644 --- a/basctl/qa/unit/basctl-dialogs-test.cxx +++ b/basctl/qa/unit/basctl-dialogs-test.cxx @@ -36,9 +36,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -BasctlDialogsTest::BasctlDialogsTest() -{ -} +BasctlDialogsTest::BasctlDialogsTest() {} void BasctlDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/) { diff --git a/basctl/source/basicide/breakpoint.hxx b/basctl/source/basicide/breakpoint.hxx index 4b5ab232535e..324564aaa72e 100644 --- a/basctl/source/basicide/breakpoint.hxx +++ b/basctl/source/basicide/breakpoint.hxx @@ -28,7 +28,6 @@ class SbModule; namespace basctl { - struct BreakPoint { bool bEnabled; @@ -48,19 +47,19 @@ struct BreakPoint class BreakPointList { private: - BreakPointList& operator =(BreakPointList const &) = delete; + BreakPointList& operator=(BreakPointList const&) = delete; std::vector<BreakPoint> maBreakPoints; public: BreakPointList(); - BreakPointList(BreakPointList const & rList); + BreakPointList(BreakPointList const& rList); ~BreakPointList(); void reset(); - void transfer(BreakPointList & rList); + void transfer(BreakPointList& rList); void InsertSorted(BreakPoint pBrk); BreakPoint* FindBreakPoint(sal_uInt16 nLine); diff --git a/basic/source/classes/sbintern.cxx b/basic/source/classes/sbintern.cxx index 77bfc64e030b..aaf26ee2a34c 100644 --- a/basic/source/classes/sbintern.cxx +++ b/basic/source/classes/sbintern.cxx @@ -25,7 +25,7 @@ SbiGlobals* SbiGlobals::pGlobals = nullptr; SbiGlobals* GetSbData() { - if( !SbiGlobals::pGlobals ) + if (!SbiGlobals::pGlobals) SbiGlobals::pGlobals = new SbiGlobals; return SbiGlobals::pGlobals; } @@ -33,13 +33,13 @@ SbiGlobals* GetSbData() SbiGlobals::SbiGlobals() { pInst = nullptr; - pSbFac= nullptr; + pSbFac = nullptr; pUnoFac = nullptr; pTypeFac = nullptr; pClassFac = nullptr; pOLEFac = nullptr; pFormFac = nullptr; - pMod = nullptr; + pMod = nullptr; pCompMod = nullptr; // JSM nInst = 0; nCode = ERRCODE_NONE; diff --git a/basic/source/inc/eventatt.hxx b/basic/source/inc/eventatt.hxx index fbe0104db00f..b38c83c597ce 100644 --- a/basic/source/inc/eventatt.hxx +++ b/basic/source/inc/eventatt.hxx @@ -27,7 +27,7 @@ class SbxArray; // Instantiate "com.sun.star.awt.UnoControlDialog" on basis // of a DialogLibrary entry: Convert from XML-ByteSequence // and attach events. -void RTL_Impl_CreateUnoDialog( SbxArray& rPar ); +void RTL_Impl_CreateUnoDialog(SbxArray& rPar); #endif diff --git a/basic/source/inc/sbxmod.hxx b/basic/source/inc/sbxmod.hxx index 9ada1861ae6f..853715c4b130 100644 --- a/basic/source/inc/sbxmod.hxx +++ b/basic/source/inc/sbxmod.hxx @@ -23,7 +23,7 @@ #include <com/sun/star/frame/XModel.hpp> #include <basic/sbstar.hxx> -css::uno::Reference< css::frame::XModel > getDocumentModel( StarBASIC* ); +css::uno::Reference<css::frame::XModel> getDocumentModel(StarBASIC*); #endif // INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist index 2822ad5871cb..4f5bc8098ce1 100644 --- a/solenv/clang-format/blacklist +++ b/solenv/clang-format/blacklist @@ -46,7 +46,6 @@ accessibility/inc/extended/accessibletablistbox.hxx accessibility/inc/extended/accessibletablistboxtable.hxx accessibility/inc/extended/textwindowaccessibility.hxx accessibility/inc/helper/IComboListBoxHelper.hxx -accessibility/inc/helper/accresmgr.hxx accessibility/inc/helper/characterattributeshelper.hxx accessibility/inc/helper/listboxhelper.hxx accessibility/inc/standard/accessiblemenubasecomponent.hxx @@ -115,7 +114,6 @@ accessibility/source/helper/IComboListBoxHelper.cxx accessibility/source/helper/acc_factory.cxx accessibility/source/helper/accresmgr.cxx accessibility/source/helper/characterattributeshelper.cxx -accessibility/source/inc/floatingwindowaccessible.hxx accessibility/source/standard/accessiblemenubasecomponent.cxx accessibility/source/standard/accessiblemenucomponent.cxx accessibility/source/standard/accessiblemenuitemcomponent.cxx @@ -224,7 +222,6 @@ avmedia/source/win/winuno.cxx basctl/inc/helpids.h basctl/inc/iderdll.hxx basctl/inc/strings.hxx -basctl/qa/unit/basctl-dialogs-test.cxx basctl/source/accessibility/accessibledialogcontrolshape.cxx basctl/source/accessibility/accessibledialogwindow.cxx basctl/source/basicide/basdoc.cxx @@ -248,7 +245,6 @@ basctl/source/basicide/bastype3.cxx basctl/source/basicide/bastype3.hxx basctl/source/basicide/bastypes.cxx basctl/source/basicide/breakpoint.cxx -basctl/source/basicide/breakpoint.hxx basctl/source/basicide/brkdlg.cxx basctl/source/basicide/brkdlg.hxx basctl/source/basicide/doceventnotifier.cxx @@ -395,7 +391,6 @@ basic/source/classes/global.cxx basic/source/classes/image.cxx basic/source/classes/propacc.cxx basic/source/classes/sb.cxx -basic/source/classes/sbintern.cxx basic/source/classes/sbunoobj.cxx basic/source/classes/sbxmod.cxx basic/source/comp/basiccharclass.cxx @@ -418,7 +413,6 @@ basic/source/inc/codegen.hxx basic/source/inc/date.hxx basic/source/inc/dlgcont.hxx basic/source/inc/errobject.hxx -basic/source/inc/eventatt.hxx basic/source/inc/expr.hxx basic/source/inc/filefmt.hxx basic/source/inc/image.hxx @@ -433,7 +427,6 @@ basic/source/inc/sbintern.hxx basic/source/inc/sbjsmeth.hxx basic/source/inc/sbjsmod.hxx basic/source/inc/sbunoobj.hxx -basic/source/inc/sbxmod.hxx basic/source/inc/scanner.hxx basic/source/inc/scriptcont.hxx basic/source/inc/stdobj.hxx _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits