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.kara@collabora.com>
This commit is contained in:
Muhammet Kara
2020-02-16 10:27:48 +03:00
parent 4c0c333388
commit a8487acabd
8 changed files with 10 additions and 21 deletions

View File

@@ -23,5 +23,4 @@
OUString AccResId(const char* pId); OUString AccResId(const char* pId);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -26,7 +26,7 @@ class FloatingWindowAccessible final : public VCLXAccessibleComponent
public: public:
using VCLXAccessibleComponent::VCLXAccessibleComponent; using VCLXAccessibleComponent::VCLXAccessibleComponent;
virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet ) override; virtual void FillAccessibleRelationSet(utl::AccessibleRelationSetHelper& rRelationSet) override;
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -36,9 +36,7 @@ public:
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; };
BasctlDialogsTest::BasctlDialogsTest() BasctlDialogsTest::BasctlDialogsTest() {}
{
}
void BasctlDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/) void BasctlDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
{ {

View File

@@ -28,7 +28,6 @@ class SbModule;
namespace basctl namespace basctl
{ {
struct BreakPoint struct BreakPoint
{ {
bool bEnabled; bool bEnabled;
@@ -48,19 +47,19 @@ struct BreakPoint
class BreakPointList class BreakPointList
{ {
private: private:
BreakPointList& operator =(BreakPointList const &) = delete; BreakPointList& operator=(BreakPointList const&) = delete;
std::vector<BreakPoint> maBreakPoints; std::vector<BreakPoint> maBreakPoints;
public: public:
BreakPointList(); BreakPointList();
BreakPointList(BreakPointList const & rList); BreakPointList(BreakPointList const& rList);
~BreakPointList(); ~BreakPointList();
void reset(); void reset();
void transfer(BreakPointList & rList); void transfer(BreakPointList& rList);
void InsertSorted(BreakPoint pBrk); void InsertSorted(BreakPoint pBrk);
BreakPoint* FindBreakPoint(sal_uInt16 nLine); BreakPoint* FindBreakPoint(sal_uInt16 nLine);

View File

@@ -25,7 +25,7 @@ SbiGlobals* SbiGlobals::pGlobals = nullptr;
SbiGlobals* GetSbData() SbiGlobals* GetSbData()
{ {
if( !SbiGlobals::pGlobals ) if (!SbiGlobals::pGlobals)
SbiGlobals::pGlobals = new SbiGlobals; SbiGlobals::pGlobals = new SbiGlobals;
return SbiGlobals::pGlobals; return SbiGlobals::pGlobals;
} }
@@ -33,7 +33,7 @@ SbiGlobals* GetSbData()
SbiGlobals::SbiGlobals() SbiGlobals::SbiGlobals()
{ {
pInst = nullptr; pInst = nullptr;
pSbFac= nullptr; pSbFac = nullptr;
pUnoFac = nullptr; pUnoFac = nullptr;
pTypeFac = nullptr; pTypeFac = nullptr;
pClassFac = nullptr; pClassFac = nullptr;

View File

@@ -27,7 +27,7 @@ class SbxArray;
// Instantiate "com.sun.star.awt.UnoControlDialog" on basis // Instantiate "com.sun.star.awt.UnoControlDialog" on basis
// of a DialogLibrary entry: Convert from XML-ByteSequence // of a DialogLibrary entry: Convert from XML-ByteSequence
// and attach events. // and attach events.
void RTL_Impl_CreateUnoDialog( SbxArray& rPar ); void RTL_Impl_CreateUnoDialog(SbxArray& rPar);
#endif #endif

View File

@@ -23,7 +23,7 @@
#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/frame/XModel.hpp>
#include <basic/sbstar.hxx> #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 #endif // INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX

View File

@@ -46,7 +46,6 @@ accessibility/inc/extended/accessibletablistbox.hxx
accessibility/inc/extended/accessibletablistboxtable.hxx accessibility/inc/extended/accessibletablistboxtable.hxx
accessibility/inc/extended/textwindowaccessibility.hxx accessibility/inc/extended/textwindowaccessibility.hxx
accessibility/inc/helper/IComboListBoxHelper.hxx accessibility/inc/helper/IComboListBoxHelper.hxx
accessibility/inc/helper/accresmgr.hxx
accessibility/inc/helper/characterattributeshelper.hxx accessibility/inc/helper/characterattributeshelper.hxx
accessibility/inc/helper/listboxhelper.hxx accessibility/inc/helper/listboxhelper.hxx
accessibility/inc/standard/accessiblemenubasecomponent.hxx accessibility/inc/standard/accessiblemenubasecomponent.hxx
@@ -115,7 +114,6 @@ accessibility/source/helper/IComboListBoxHelper.cxx
accessibility/source/helper/acc_factory.cxx accessibility/source/helper/acc_factory.cxx
accessibility/source/helper/accresmgr.cxx accessibility/source/helper/accresmgr.cxx
accessibility/source/helper/characterattributeshelper.cxx accessibility/source/helper/characterattributeshelper.cxx
accessibility/source/inc/floatingwindowaccessible.hxx
accessibility/source/standard/accessiblemenubasecomponent.cxx accessibility/source/standard/accessiblemenubasecomponent.cxx
accessibility/source/standard/accessiblemenucomponent.cxx accessibility/source/standard/accessiblemenucomponent.cxx
accessibility/source/standard/accessiblemenuitemcomponent.cxx accessibility/source/standard/accessiblemenuitemcomponent.cxx
@@ -224,7 +222,6 @@ avmedia/source/win/winuno.cxx
basctl/inc/helpids.h basctl/inc/helpids.h
basctl/inc/iderdll.hxx basctl/inc/iderdll.hxx
basctl/inc/strings.hxx basctl/inc/strings.hxx
basctl/qa/unit/basctl-dialogs-test.cxx
basctl/source/accessibility/accessibledialogcontrolshape.cxx basctl/source/accessibility/accessibledialogcontrolshape.cxx
basctl/source/accessibility/accessibledialogwindow.cxx basctl/source/accessibility/accessibledialogwindow.cxx
basctl/source/basicide/basdoc.cxx basctl/source/basicide/basdoc.cxx
@@ -248,7 +245,6 @@ basctl/source/basicide/bastype3.cxx
basctl/source/basicide/bastype3.hxx basctl/source/basicide/bastype3.hxx
basctl/source/basicide/bastypes.cxx basctl/source/basicide/bastypes.cxx
basctl/source/basicide/breakpoint.cxx basctl/source/basicide/breakpoint.cxx
basctl/source/basicide/breakpoint.hxx
basctl/source/basicide/brkdlg.cxx basctl/source/basicide/brkdlg.cxx
basctl/source/basicide/brkdlg.hxx basctl/source/basicide/brkdlg.hxx
basctl/source/basicide/doceventnotifier.cxx basctl/source/basicide/doceventnotifier.cxx
@@ -395,7 +391,6 @@ basic/source/classes/global.cxx
basic/source/classes/image.cxx basic/source/classes/image.cxx
basic/source/classes/propacc.cxx basic/source/classes/propacc.cxx
basic/source/classes/sb.cxx basic/source/classes/sb.cxx
basic/source/classes/sbintern.cxx
basic/source/classes/sbunoobj.cxx basic/source/classes/sbunoobj.cxx
basic/source/classes/sbxmod.cxx basic/source/classes/sbxmod.cxx
basic/source/comp/basiccharclass.cxx basic/source/comp/basiccharclass.cxx
@@ -418,7 +413,6 @@ basic/source/inc/codegen.hxx
basic/source/inc/date.hxx basic/source/inc/date.hxx
basic/source/inc/dlgcont.hxx basic/source/inc/dlgcont.hxx
basic/source/inc/errobject.hxx basic/source/inc/errobject.hxx
basic/source/inc/eventatt.hxx
basic/source/inc/expr.hxx basic/source/inc/expr.hxx
basic/source/inc/filefmt.hxx basic/source/inc/filefmt.hxx
basic/source/inc/image.hxx basic/source/inc/image.hxx
@@ -433,7 +427,6 @@ basic/source/inc/sbintern.hxx
basic/source/inc/sbjsmeth.hxx basic/source/inc/sbjsmeth.hxx
basic/source/inc/sbjsmod.hxx basic/source/inc/sbjsmod.hxx
basic/source/inc/sbunoobj.hxx basic/source/inc/sbunoobj.hxx
basic/source/inc/sbxmod.hxx
basic/source/inc/scanner.hxx basic/source/inc/scanner.hxx
basic/source/inc/scriptcont.hxx basic/source/inc/scriptcont.hxx
basic/source/inc/stdobj.hxx basic/source/inc/stdobj.hxx