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);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -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: */

View file

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

View file

@ -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);

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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