summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basctl/source/basicide/baside2.hxx2
-rw-r--r--basctl/source/basicide/baside2b.cxx12
-rw-r--r--basctl/source/basicide/baside3.cxx9
-rw-r--r--basctl/source/basicide/linenumberwindow.cxx4
-rw-r--r--basctl/source/basicide/linenumberwindow.hxx2
-rw-r--r--basctl/source/basicide/moduldl2.cxx6
-rw-r--r--basctl/source/basicide/moduldlg.cxx6
-rw-r--r--basctl/source/basicide/moduldlg.hxx4
-rw-r--r--basctl/source/inc/baside3.hxx2
-rw-r--r--compilerplugins/clang/constantparam.cxx11
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx2
-rw-r--r--cui/source/dialogs/iconcdlg.cxx7
-rw-r--r--cui/source/inc/iconcdlg.hxx2
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx2
-rw-r--r--dbaccess/source/filter/xml/xmlHelper.cxx4
-rw-r--r--dbaccess/source/filter/xml/xmlHelper.hxx2
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx20
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.hxx2
-rw-r--r--dbaccess/source/ui/app/AppDetailView.cxx26
-rw-r--r--dbaccess/source/ui/app/AppDetailView.hxx4
-rw-r--r--dbaccess/source/ui/app/AppSwapWindow.cxx10
-rw-r--r--dbaccess/source/ui/app/AppSwapWindow.hxx2
-rw-r--r--dbaccess/source/ui/app/AppTitleWindow.cxx9
-rw-r--r--dbaccess/source/ui/app/AppTitleWindow.hxx2
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx2
-rw-r--r--dbaccess/source/ui/control/VertSplitView.cxx17
-rw-r--r--dbaccess/source/ui/inc/TableDesignView.hxx2
-rw-r--r--dbaccess/source/ui/inc/VertSplitView.hxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignView.cxx17
-rw-r--r--editeng/source/editeng/editeng.cxx6
-rw-r--r--editeng/source/outliner/outlin2.cxx2
-rw-r--r--extensions/source/dbpilots/listcombowizard.cxx11
-rw-r--r--extensions/source/dbpilots/listcombowizard.hxx2
-rw-r--r--framework/source/uielement/statusbarmanager.cxx2
-rw-r--r--include/editeng/editeng.hxx6
-rw-r--r--include/sfx2/frame.hxx2
-rw-r--r--include/svtools/treelistbox.hxx2
-rw-r--r--include/svx/framelinkarray.hxx6
-rw-r--r--include/svx/gridctrl.hxx2
-rw-r--r--include/svx/svdedtv.hxx2
-rw-r--r--include/ucbhelper/contenthelper.hxx6
-rw-r--r--include/vcl/cursor.hxx2
-rw-r--r--include/vcl/status.hxx2
-rw-r--r--reportdesign/source/ui/inc/ReportWindow.hxx4
-rw-r--r--reportdesign/source/ui/report/ReportWindow.cxx4
-rw-r--r--reportdesign/source/ui/report/ScrollHelper.cxx2
-rw-r--r--sal/qa/osl/process/osl_Thread.cxx12
-rw-r--r--sc/source/core/data/column2.cxx2
-rw-r--r--sc/source/core/data/fillinfo.cxx7
-rw-r--r--sc/source/filter/oox/formulaparser.cxx11
-rw-r--r--sc/source/ui/inc/navipi.hxx2
-rw-r--r--sc/source/ui/inc/viewfunc.hxx2
-rw-r--r--sc/source/ui/navipi/navipi.cxx36
-rw-r--r--sc/source/ui/undo/undoblk.cxx2
-rw-r--r--sc/source/ui/vba/excelvbahelper.cxx2
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
-rw-r--r--sc/source/ui/view/viewfun3.cxx7
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx5
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx8
-rw-r--r--sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx2
-rw-r--r--sfx2/source/view/frame.cxx4
-rw-r--r--sfx2/source/view/viewfrm.cxx2
-rw-r--r--svtools/source/contnr/fileview.cxx8
-rw-r--r--svtools/source/contnr/imivctl1.cxx8
-rw-r--r--svtools/source/contnr/treelistbox.cxx9
-rw-r--r--svx/source/dialog/framelinkarray.cxx22
-rw-r--r--svx/source/engine3d/view3d1.cxx2
-rw-r--r--svx/source/fmcomp/gridctrl.cxx6
-rw-r--r--svx/source/svdraw/svdedtv2.cxx4
-rw-r--r--svx/source/svdraw/svdundo.cxx2
-rw-r--r--sw/inc/accmap.hxx3
-rw-r--r--sw/inc/authfld.hxx2
-rw-r--r--sw/inc/crsrsh.hxx2
-rw-r--r--sw/inc/fesh.hxx2
-rw-r--r--sw/inc/redline.hxx2
-rw-r--r--sw/inc/shellio.hxx3
-rw-r--r--sw/qa/extras/mailmerge/mailmerge.cxx6
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx2
-rw-r--r--sw/source/core/access/accmap.cxx7
-rw-r--r--sw/source/core/crsr/crsrsh.cxx6
-rw-r--r--sw/source/core/doc/docredln.cxx14
-rw-r--r--sw/source/core/docnode/section.cxx2
-rw-r--r--sw/source/core/fields/authfld.cxx8
-rw-r--r--sw/source/core/fields/fldbas.cxx2
-rw-r--r--sw/source/core/frmedt/fefly1.cxx46
-rw-r--r--sw/source/core/frmedt/fews.cxx2
-rw-r--r--sw/source/core/inc/frame.hxx6
-rw-r--r--sw/source/core/layout/findfrm.cxx10
-rw-r--r--sw/source/core/layout/layact.cxx2
-rw-r--r--sw/source/core/view/viewimp.cxx4
-rw-r--r--sw/source/filter/basflt/fltini.cxx4
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx2
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx2
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx2
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontent.cxx4
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx4
-rw-r--r--ucb/source/ucp/tdoc/tdoc_content.cxx4
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx2
-rw-r--r--ucbhelper/source/provider/contenthelper.cxx4
-rw-r--r--vcl/source/window/cursor.cxx7
-rw-r--r--vcl/source/window/mouse.cxx2
-rw-r--r--vcl/source/window/status.cxx4
-rw-r--r--vcl/source/window/window.cxx2
-rw-r--r--vcl/source/window/winproc.cxx4
104 files changed, 267 insertions, 333 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index 996579a34aa8..513f03236623 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -191,7 +191,7 @@ public:
void SetMarkerPos( sal_uInt16 nLine, bool bErrorMarker = false );
void SetNoMarker ();
- void DoScroll( long nHorzScroll, long nVertScroll );
+ void DoScroll( long nVertScroll );
long& GetCurYOffset() { return nCurYOffset; }
BreakPointList& GetBreakPoints() { return aBreakPointList; }
};
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 73354e175569..68f2767e359e 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1075,9 +1075,9 @@ void EditorWindow::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
rModulWindow.GetHScrollBar()->SetThumbPos( pEditView->GetStartDocPos().X() );
rModulWindow.GetEditVScrollBar().SetThumbPos( pEditView->GetStartDocPos().Y() );
rModulWindow.GetBreakPointWindow().DoScroll
- ( 0, rModulWindow.GetBreakPointWindow().GetCurYOffset() - pEditView->GetStartDocPos().Y() );
+ ( rModulWindow.GetBreakPointWindow().GetCurYOffset() - pEditView->GetStartDocPos().Y() );
rModulWindow.GetLineNumberWindow().DoScroll
- ( 0, rModulWindow.GetLineNumberWindow().GetCurYOffset() - pEditView->GetStartDocPos().Y() );
+ ( rModulWindow.GetLineNumberWindow().GetCurYOffset() - pEditView->GetStartDocPos().Y() );
}
else if( rTextHint.GetId() == TEXT_HINT_TEXTHEIGHTCHANGED )
{
@@ -1416,10 +1416,10 @@ void BreakPointWindow::ShowMarker(vcl::RenderContext& rRenderContext)
rRenderContext.DrawImage(aPos, aMarker);
}
-void BreakPointWindow::DoScroll( long nHorzScroll, long nVertScroll )
+void BreakPointWindow::DoScroll( long nVertScroll )
{
nCurYOffset -= nVertScroll;
- Window::Scroll( nHorzScroll, nVertScroll );
+ Window::Scroll( 0, nVertScroll );
}
void BreakPointWindow::SetMarkerPos( sal_uInt16 nLine, bool bError )
@@ -2040,8 +2040,8 @@ IMPL_LINK_TYPED(ComplexEditorWindow, ScrollHdl, ScrollBar *, pCurScrollBar, void
DBG_ASSERT( pCurScrollBar == aEWVScrollBar.get(), "Wer scrollt hier ?" );
long nDiff = aEdtWindow->GetEditView()->GetStartDocPos().Y() - pCurScrollBar->GetThumbPos();
aEdtWindow->GetEditView()->Scroll( 0, nDiff );
- aBrkWindow->DoScroll( 0, nDiff );
- aLineNumberWindow->DoScroll(0, nDiff);
+ aBrkWindow->DoScroll( nDiff );
+ aLineNumberWindow->DoScroll( nDiff );
aEdtWindow->GetEditView()->ShowCursor(false);
pCurScrollBar->SetThumbPos( aEdtWindow->GetEditView()->GetStartDocPos().Y() );
}
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index af1421648ff3..a8b08986ddc8 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -80,7 +80,7 @@ DialogWindow::DialogWindow(DialogWindowLayout* pParent, ScriptDocument const& rD
: Reference<frame::XModel>(), xDialogModel))
,pUndoMgr(new SfxUndoManager)
{
- InitSettings( true );
+ InitSettings();
pEditor->GetModel().SetNotifyUndoActionHdl(
LINK(this, DialogWindow, NotifyUndoActionHdl)
@@ -1325,14 +1325,14 @@ void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
if( (rDCEvt.GetType()==DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- InitSettings( true );
+ InitSettings();
Invalidate();
}
else
BaseWindow::DataChanged( rDCEvt );
}
-void DialogWindow::InitSettings(bool bBackground)
+void DialogWindow::InitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -1343,8 +1343,7 @@ void DialogWindow::InitSettings(bool bBackground)
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
}
css::uno::Reference< css::accessibility::XAccessible > DialogWindow::CreateAccessible()
diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx
index 298f4d02bf6a..2030c8734d02 100644
--- a/basctl/source/basicide/linenumberwindow.cxx
+++ b/basctl/source/basicide/linenumberwindow.cxx
@@ -99,10 +99,10 @@ void LineNumberWindow::DataChanged(DataChangedEvent const & rDCEvt)
}
}
-void LineNumberWindow::DoScroll(long nHorzScroll, long nVertScroll)
+void LineNumberWindow::DoScroll(long nVertScroll)
{
m_nCurYOffset -= nVertScroll;
- Window::Scroll(nHorzScroll, nVertScroll);
+ Window::Scroll(0, nVertScroll);
}
diff --git a/basctl/source/basicide/linenumberwindow.hxx b/basctl/source/basicide/linenumberwindow.hxx
index 3c1bd61acd95..0e7673c5a1e4 100644
--- a/basctl/source/basicide/linenumberwindow.hxx
+++ b/basctl/source/basicide/linenumberwindow.hxx
@@ -33,7 +33,7 @@ public:
virtual ~LineNumberWindow();
virtual void dispose() override;
- void DoScroll( long nHorzScroll, long nVertScroll );
+ void DoScroll( long nVertScroll );
bool SyncYOffset();
long& GetCurYOffset() { return m_nCurYOffset;}
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 64e45e22f6cf..2fcb303561f4 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -633,7 +633,7 @@ IMPL_LINK_TYPED( LibPage, ButtonHdl, Button *, pButton, void )
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED,
SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0 );
- EndTabDialog( 1 );
+ EndTabDialog();
return;
}
else if (pButton == m_pNewLibButton)
@@ -1369,11 +1369,11 @@ void LibPage::DeleteCurrent()
}
}
-void LibPage::EndTabDialog( sal_uInt16 nRet )
+void LibPage::EndTabDialog()
{
DBG_ASSERT( pTabDlg, "TabDlg nicht gesetzt!" );
if ( pTabDlg )
- pTabDlg->EndDialog( nRet );
+ pTabDlg->EndDialog( 1 );
}
void LibPage::FillListBox()
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index 1285300f9ac5..c63e885c85de 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -739,7 +739,7 @@ IMPL_LINK_TYPED( ObjectPage, ButtonHdl, Button *, pButton, void )
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED, SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0 );
}
}
- EndTabDialog( 1 );
+ EndTabDialog();
}
else if (pButton == m_pNewModButton)
NewModule();
@@ -919,11 +919,11 @@ void ObjectPage::DeleteCurrent()
}
-void ObjectPage::EndTabDialog( sal_uInt16 nRet )
+void ObjectPage::EndTabDialog()
{
DBG_ASSERT( pTabDlg, "TabDlg nicht gesetzt!" );
if ( pTabDlg )
- pTabDlg->EndDialog( nRet );
+ pTabDlg->EndDialog( 1 );
}
LibDialog::LibDialog( vcl::Window* pParent )
diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx
index 958509b80ed7..d3cc32b74012 100644
--- a/basctl/source/basicide/moduldlg.hxx
+++ b/basctl/source/basicide/moduldlg.hxx
@@ -197,7 +197,7 @@ protected:
void DeleteCurrent();
void NewModule();
void NewDialog();
- void EndTabDialog( sal_uInt16 nRet );
+ void EndTabDialog();
VclPtr<TabDialog> pTabDlg;
@@ -242,7 +242,7 @@ protected:
void Export();
void ExportAsPackage( const OUString& aLibName );
void ExportAsBasic( const OUString& aLibName );
- void EndTabDialog( sal_uInt16 nRet );
+ void EndTabDialog();
void FillListBox();
void InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocation eLocation );
void SetCurLib();
diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx
index e6696d4a7f81..64b34fc62a44 100644
--- a/basctl/source/inc/baside3.hxx
+++ b/basctl/source/inc/baside3.hxx
@@ -77,7 +77,7 @@ protected:
virtual void DoInit() override;
virtual void DoScroll( ScrollBar* pCurScrollBar ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
- void InitSettings(bool bBackground);
+ void InitSettings();
public:
DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, css::uno::Reference<css::container::XNameContainer> const& xDialogModel);
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx
index 6726836d5205..3385265a877a 100644
--- a/compilerplugins/clang/constantparam.cxx
+++ b/compilerplugins/clang/constantparam.cxx
@@ -21,8 +21,8 @@
The process goes something like this:
$ make check
- $ make FORCE_COMPILE_ALL=1 COMPILER_PLUGIN_TOOL='unuseddefaultparams' check
- $ ./compilerplugins/clang/unuseddefaultparams.py unuseddefaultparams.log
+ $ make FORCE_COMPILE_ALL=1 COMPILER_PLUGIN_TOOL='constantparam' check
+ $ ./compilerplugins/clang/constantparam.py constantparam.log
*/
namespace {
@@ -56,6 +56,13 @@ public:
virtual void run() override
{
+ // there is a crash here that I can't seem to workaround
+ // clang-3.8: /home/noel/clang/src/tools/clang/lib/AST/Type.cpp:1878: bool clang::Type::isConstantSizeType() const: Assertion `!isDependentType() && "This doesn't make sense for dependent types"' failed.
+ FileID mainFileID = compiler.getSourceManager().getMainFileID();
+ if (strstr(compiler.getSourceManager().getFileEntryForID(mainFileID)->getDir()->getName(), "oox/source/dump") != 0) {
+ return;
+ }
+
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
// dump all our output in one write call - this is to try and limit IO "crosstalk" between multiple processes
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index c285d86d27a5..1c872b1d957f 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -146,7 +146,7 @@ SvxHpLinkDlg::SvxHpLinkDlg (vcl::Window* pParent, SfxBindings* pBindings)
SetCurPageId(RID_SVXPAGE_HYPERLINK_INTERNET);
// Init Dialog
- Start (false);
+ Start();
pBindings->Update( SID_READONLY_MODE );
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index bcb644eacb3c..859dc9a43e27 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -657,17 +657,12 @@ short IconChoiceDialog::Execute()
}
-void IconChoiceDialog::Start( bool bShow )
+void IconChoiceDialog::Start()
{
-
m_pCancelBtn->SetClickHdl( LINK( this, IconChoiceDialog, CancelHdl ) );
bModal = false;
Start_Impl();
-
- if ( bShow )
- Window::Show();
-
}
diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx
index 851fb45d8e6c..b343adbd61ee 100644
--- a/cui/source/inc/iconcdlg.hxx
+++ b/cui/source/inc/iconcdlg.hxx
@@ -192,7 +192,7 @@ public:
CancelButton& GetCancelButton() { return *m_pCancelBtn; }
short Execute() override;
- void Start( bool bShow = true );
+ void Start();
bool QueryClose();
void SetCtrlStyle();
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 2938173bb2a1..b0fd2dc46447 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -221,7 +221,7 @@ ODBExport::ODBExport(const Reference< XComponentContext >& _rxContext, OUString
m_xColumnExportHelper = new OSpecialHandleXMLExportPropertyMapper(GetColumnStylesPropertySetMapper());
m_xCellExportHelper = new OSpecialHandleXMLExportPropertyMapper(GetCellStylesPropertySetMapper());
- m_xRowExportHelper = new OSpecialHandleXMLExportPropertyMapper(OXMLHelper::GetRowStylesPropertySetMapper( true));
+ m_xRowExportHelper = new OSpecialHandleXMLExportPropertyMapper(OXMLHelper::GetRowStylesPropertySetMapper());
GetAutoStylePool()->AddFamily(
XML_STYLE_FAMILY_TABLE_TABLE,
diff --git a/dbaccess/source/filter/xml/xmlHelper.cxx b/dbaccess/source/filter/xml/xmlHelper.cxx
index 38071558aba6..de5844b9c029 100644
--- a/dbaccess/source/filter/xml/xmlHelper.cxx
+++ b/dbaccess/source/filter/xml/xmlHelper.cxx
@@ -136,7 +136,7 @@ rtl::Reference < XMLPropertySetMapper > OXMLHelper::GetCellStylesPropertySetMapp
return new XMLPropertySetMapper(s_aCellStylesProperties, xFac, bForExport);
}
-rtl::Reference < XMLPropertySetMapper > OXMLHelper::GetRowStylesPropertySetMapper( bool bForExport )
+rtl::Reference < XMLPropertySetMapper > OXMLHelper::GetRowStylesPropertySetMapper()
{
#define MAP_CONST_ROW( name, prefix, token, type, context ) { name, sizeof(name)-1, prefix, token, type|XML_TYPE_PROP_TABLE_ROW, context, SvtSaveOptions::ODFVER_010, false }
static const XMLPropertyMapEntry s_aStylesProperties[] =
@@ -145,7 +145,7 @@ rtl::Reference < XMLPropertySetMapper > OXMLHelper::GetRowStylesPropertySetMappe
MAP_END()
};
rtl::Reference < XMLPropertyHandlerFactory> xFac = new OPropertyHandlerFactory();
- return new XMLPropertySetMapper(s_aStylesProperties, xFac, bForExport);
+ return new XMLPropertySetMapper(s_aStylesProperties, xFac, true/*bForExport*/);
}
}
diff --git a/dbaccess/source/filter/xml/xmlHelper.hxx b/dbaccess/source/filter/xml/xmlHelper.hxx
index 349125cfcb75..12dc4374d61c 100644
--- a/dbaccess/source/filter/xml/xmlHelper.hxx
+++ b/dbaccess/source/filter/xml/xmlHelper.hxx
@@ -52,7 +52,7 @@ namespace dbaxml
static rtl::Reference < XMLPropertySetMapper > GetTableStylesPropertySetMapper( bool bForExport );
static rtl::Reference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper( bool bForExport );
static rtl::Reference < XMLPropertySetMapper > GetCellStylesPropertySetMapper( bool bForExport );
- static rtl::Reference < XMLPropertySetMapper > GetRowStylesPropertySetMapper( bool bForExport );
+ static rtl::Reference < XMLPropertySetMapper > GetRowStylesPropertySetMapper();
};
} // dbaxml
#endif // INCLUDED_DBACCESS_SOURCE_FILTER_XML_XMLHELPER_HXX
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 2f2e240d4e8c..68c231761b7c 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -128,7 +128,7 @@ namespace
class OTablePreviewWindow : public vcl::Window
{
DECL_LINK_TYPED(OnDisableInput, void*, void);
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
public:
@@ -137,7 +137,7 @@ namespace
};
OTablePreviewWindow::OTablePreviewWindow(vcl::Window* pParent, WinBits nStyle) : Window( pParent, nStyle)
{
- ImplInitSettings( true );
+ ImplInitSettings();
}
bool OTablePreviewWindow::Notify( NotifyEvent& rNEvt )
{
@@ -157,11 +157,11 @@ namespace
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
- void OTablePreviewWindow::ImplInitSettings( bool bBackground )
+ void OTablePreviewWindow::ImplInitSettings()
{
//FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -173,8 +173,7 @@ namespace
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
}
}
@@ -1245,7 +1244,7 @@ void OAppDetailPageHelper::ImplInitSettings()
OPreviewWindow::OPreviewWindow(vcl::Window* _pParent)
: Window(_pParent)
{
- ImplInitSettings( true );
+ ImplInitSettings();
}
bool OPreviewWindow::ImplGetGraphicCenterRect( const Graphic& rGraphic, Rectangle& rResultRect ) const
@@ -1304,12 +1303,12 @@ void OPreviewWindow::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
-void OPreviewWindow::ImplInitSettings( bool bBackground )
+void OPreviewWindow::ImplInitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -1321,8 +1320,7 @@ void OPreviewWindow::ImplInitSettings( bool bBackground )
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
index 96c8423969b0..819a521d0c73 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
@@ -62,7 +62,7 @@ namespace dbaui
<TRUE/> when successful
*/
bool ImplGetGraphicCenterRect( const Graphic& rGraphic, Rectangle& rResultRect ) const;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
public:
diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx
index e42d80587382..763265b908d2 100644
--- a/dbaccess/source/ui/app/AppDetailView.cxx
+++ b/dbaccess/source/ui/app/AppDetailView.cxx
@@ -360,7 +360,7 @@ OTasksWindow::OTasksWindow(vcl::Window* _pParent,OApplicationDetailView* _pDetai
m_aCreation->SetDefaultCollapsedEntryBmp( aFolderImage );
m_aCreation->SetDefaultExpandedEntryBmp( aFolderImage );
- ImplInitSettings(true);
+ ImplInitSettings();
}
OTasksWindow::~OTasksWindow()
@@ -386,12 +386,12 @@ void OTasksWindow::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
-void OTasksWindow::ImplInitSettings( bool bBackground )
+void OTasksWindow::ImplInitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -407,13 +407,10 @@ void OTasksWindow::ImplInitSettings( bool bBackground )
m_aDescription->SetTextColor( rStyleSettings.GetFieldTextColor() );
m_aDescription->SetTextFillColor();
- if( bBackground )
- {
- SetBackground( rStyleSettings.GetFieldColor() );
- m_aHelpText->SetBackground( rStyleSettings.GetFieldColor() );
- m_aDescription->SetBackground( rStyleSettings.GetFieldColor() );
- m_aFL->SetBackground( rStyleSettings.GetFieldColor() );
- }
+ SetBackground( rStyleSettings.GetFieldColor() );
+ m_aHelpText->SetBackground( rStyleSettings.GetFieldColor() );
+ m_aDescription->SetBackground( rStyleSettings.GetFieldColor() );
+ m_aFL->SetBackground( rStyleSettings.GetFieldColor() );
aFont = m_aDescription->GetControlFont();
aFont.SetWeight(WEIGHT_BOLD);
@@ -533,7 +530,7 @@ OApplicationDetailView::OApplicationDetailView(OAppBorderWindow& _rParent,Previe
,m_rBorderWin(_rParent)
{
SetUniqueId(UID_APP_DETAIL_VIEW);
- ImplInitSettings( true );
+ ImplInitSettings();
m_pControlHelper = VclPtr<OAppDetailPageHelper>::Create(m_aContainer.get(),m_rBorderWin,_ePreviewMode);
m_pControlHelper->Show();
@@ -575,7 +572,7 @@ void OApplicationDetailView::dispose()
OSplitterView::dispose();
}
-void OApplicationDetailView::ImplInitSettings( bool bBackground )
+void OApplicationDetailView::ImplInitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -587,8 +584,7 @@ void OApplicationDetailView::ImplInitSettings( bool bBackground )
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
m_aHorzSplitter->SetBackground( rStyleSettings.GetDialogColor() );
m_aHorzSplitter->SetFillColor( rStyleSettings.GetDialogColor() );
@@ -605,7 +601,7 @@ void OApplicationDetailView::DataChanged( const DataChangedEvent& rDCEvt )
((rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE)) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
diff --git a/dbaccess/source/ui/app/AppDetailView.hxx b/dbaccess/source/ui/app/AppDetailView.hxx
index 7ae2f3ab25af..5c092036b431 100644
--- a/dbaccess/source/ui/app/AppDetailView.hxx
+++ b/dbaccess/source/ui/app/AppDetailView.hxx
@@ -118,7 +118,7 @@ namespace dbaui
VclPtr<OApplicationDetailView> m_pDetailView;
DECL_LINK_TYPED( OnEntrySelectHdl, SvTreeListBox*, void );
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
public:
@@ -153,7 +153,7 @@ namespace dbaui
::std::vector< TaskPaneData > m_aTaskPaneData;
MnemonicGenerator m_aExternalMnemonics;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
diff --git a/dbaccess/source/ui/app/AppSwapWindow.cxx b/dbaccess/source/ui/app/AppSwapWindow.cxx
index 2b89d8481fb7..6d9b50f5d31e 100644
--- a/dbaccess/source/ui/app/AppSwapWindow.cxx
+++ b/dbaccess/source/ui/app/AppSwapWindow.cxx
@@ -42,8 +42,7 @@ OApplicationSwapWindow::OApplicationSwapWindow( vcl::Window* _pParent, OAppBorde
,m_eLastType(E_NONE)
,m_rBorderWin( _rBorderWindow )
{
-
- ImplInitSettings( true );
+ ImplInitSettings();
m_aIconControl->SetClickHdl(LINK(this, OApplicationSwapWindow, OnContainerSelectHdl));
m_aIconControl->setControlActionListener( &m_rBorderWin.getView()->getAppController() );
@@ -75,7 +74,7 @@ void OApplicationSwapWindow::Resize()
m_aIconControl->ArrangeIcons();
}
-void OApplicationSwapWindow::ImplInitSettings( bool bBackground )
+void OApplicationSwapWindow::ImplInitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -87,8 +86,7 @@ void OApplicationSwapWindow::ImplInitSettings( bool bBackground )
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
}
void OApplicationSwapWindow::DataChanged( const DataChangedEvent& rDCEvt )
@@ -100,7 +98,7 @@ void OApplicationSwapWindow::DataChanged( const DataChangedEvent& rDCEvt )
((rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE)) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
diff --git a/dbaccess/source/ui/app/AppSwapWindow.hxx b/dbaccess/source/ui/app/AppSwapWindow.hxx
index c77877b6c792..fc7fadf49e60 100644
--- a/dbaccess/source/ui/app/AppSwapWindow.hxx
+++ b/dbaccess/source/ui/app/AppSwapWindow.hxx
@@ -35,7 +35,7 @@ namespace dbaui
ElementType m_eLastType;
OAppBorderWindow& m_rBorderWin;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
DECL_LINK_TYPED( OnContainerSelectHdl, SvtIconChoiceCtrl*, void );
DECL_LINK_TYPED( ChangeToLastSelected, void*, void );
diff --git a/dbaccess/source/ui/app/AppTitleWindow.cxx b/dbaccess/source/ui/app/AppTitleWindow.cxx
index ede0411301f4..c0126e115a66 100644
--- a/dbaccess/source/ui/app/AppTitleWindow.cxx
+++ b/dbaccess/source/ui/app/AppTitleWindow.cxx
@@ -37,7 +37,7 @@ OTitleWindow::OTitleWindow(vcl::Window* _pParent,sal_uInt16 _nTitleId,WinBits _n
setTitle(_nTitleId);
SetBorderStyle(WindowBorderStyle::MONO);
- ImplInitSettings( true );
+ ImplInitSettings();
const StyleSettings& rStyle = Application::GetSettings().GetStyleSettings();
vcl::Window* pWindows[] = { m_aSpace1.get(), m_aSpace2.get(), m_aTitle.get() };
@@ -134,12 +134,12 @@ void OTitleWindow::DataChanged( const DataChangedEvent& rDCEvt )
((rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE)) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
-void OTitleWindow::ImplInitSettings( bool bBackground )
+void OTitleWindow::ImplInitSettings()
{
// FIXME RenderContext
AllSettings aAllSettings = GetSettings();
@@ -157,8 +157,7 @@ void OTitleWindow::ImplInitSettings( bool bBackground )
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
- if( bBackground )
- SetBackground( rStyleSettings.GetFieldColor() );
+ SetBackground( rStyleSettings.GetFieldColor() );
}
void OTitleWindow::ApplySettings(vcl::RenderContext& rRenderContext)
diff --git a/dbaccess/source/ui/app/AppTitleWindow.hxx b/dbaccess/source/ui/app/AppTitleWindow.hxx
index 3bd1c6088418..6df02ac04ed5 100644
--- a/dbaccess/source/ui/app/AppTitleWindow.hxx
+++ b/dbaccess/source/ui/app/AppTitleWindow.hxx
@@ -30,7 +30,7 @@ namespace dbaui
VclPtr<FixedText> m_aTitle;
VclPtr<vcl::Window> m_pChild;
bool m_bShift;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
public:
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index ed5b85e16622..5a8213a89958 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -576,7 +576,7 @@ void SbaTableQueryBrowser::initializePreviewMode()
{
getBrowserView()->getVclControl()->AlwaysEnableInput( false );
getBrowserView()->getVclControl()->EnableInput( false );
- getBrowserView()->getVclControl()->ForceHideScrollbars( true );
+ getBrowserView()->getVclControl()->ForceHideScrollbars();
}
Reference< XPropertySet > xDataSourceSet(getRowSet(), UNO_QUERY);
if ( xDataSourceSet.is() )
diff --git a/dbaccess/source/ui/control/VertSplitView.cxx b/dbaccess/source/ui/control/VertSplitView.cxx
index cb086c037006..2b063e207371 100644
--- a/dbaccess/source/ui/control/VertSplitView.cxx
+++ b/dbaccess/source/ui/control/VertSplitView.cxx
@@ -34,7 +34,7 @@ OSplitterView::OSplitterView(vcl::Window* _pParent,bool _bVertical) : Window(_pP
,m_pRight(nullptr)
,m_bVertical(_bVertical)
{
- ImplInitSettings( true );
+ ImplInitSettings();
}
OSplitterView::~OSplitterView()
@@ -64,7 +64,7 @@ IMPL_LINK_NOARG_TYPED( OSplitterView, SplitHdl, Splitter*, void )
Resize();
}
-void OSplitterView::ImplInitSettings( bool bBackground )
+void OSplitterView::ImplInitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -80,13 +80,10 @@ void OSplitterView::ImplInitSettings( bool bBackground )
aTextColor = GetControlForeground();
SetTextColor( aTextColor );
- if ( bBackground )
- {
- if( IsControlBackground() )
- SetBackground( GetControlBackground() );
- else
- SetBackground( rStyleSettings.GetFaceColor() );
- }
+ if( IsControlBackground() )
+ SetBackground( GetControlBackground() );
+ else
+ SetBackground( rStyleSettings.GetFaceColor() );
}
void OSplitterView::DataChanged( const DataChangedEvent& rDCEvt )
@@ -96,7 +93,7 @@ void OSplitterView::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
diff --git a/dbaccess/source/ui/inc/TableDesignView.hxx b/dbaccess/source/ui/inc/TableDesignView.hxx
index e39bcc8b4ec5..acb6ab4f5638 100644
--- a/dbaccess/source/ui/inc/TableDesignView.hxx
+++ b/dbaccess/source/ui/inc/TableDesignView.hxx
@@ -36,7 +36,7 @@ namespace dbaui
VclPtr<OTableFieldDescWin> m_pFieldDescWin;
VclPtr<OTableEditorCtrl> m_pEditorCtrl;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
DECL_LINK_TYPED( SplitHdl, Splitter*, void );
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
diff --git a/dbaccess/source/ui/inc/VertSplitView.hxx b/dbaccess/source/ui/inc/VertSplitView.hxx
index 4a36f8668058..bdc95a51e054 100644
--- a/dbaccess/source/ui/inc/VertSplitView.hxx
+++ b/dbaccess/source/ui/inc/VertSplitView.hxx
@@ -32,7 +32,7 @@ namespace dbaui
VclPtr<vcl::Window> m_pRight;
bool m_bVertical;
- void ImplInitSettings( bool bBackground );
+ void ImplInitSettings();
DECL_LINK_TYPED( SplitHdl, Splitter*, void );
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
index 97f062113e2d..febe92a3a8df 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
@@ -45,7 +45,7 @@ OTableBorderWindow::OTableBorderWindow(vcl::Window* pParent) : Window(pParent,WB
,m_aHorzSplitter( VclPtr<Splitter>::Create(this) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
// Children erzeugen
m_pEditorCtrl = VclPtr<OTableEditorCtrl>::Create( this);
m_pFieldDescWin = VclPtr<OTableFieldDescWin>::Create( this );
@@ -114,7 +114,7 @@ IMPL_LINK_TYPED( OTableBorderWindow, SplitHdl, Splitter*, pSplit, void )
}
}
-void OTableBorderWindow::ImplInitSettings( bool bBackground )
+void OTableBorderWindow::ImplInitSettings()
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -130,13 +130,10 @@ void OTableBorderWindow::ImplInitSettings( bool bBackground )
aTextColor = GetControlForeground();
SetTextColor( aTextColor );
- if ( bBackground )
- {
- if( IsControlBackground() )
- SetBackground( GetControlBackground() );
- else
- SetBackground( rStyleSettings.GetFaceColor() );
- }
+ if( IsControlBackground() )
+ SetBackground( GetControlBackground() );
+ else
+ SetBackground( rStyleSettings.GetFaceColor() );
}
void OTableBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
@@ -146,7 +143,7 @@ void OTableBorderWindow::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) &&
(rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
- ImplInitSettings( true );
+ ImplInitSettings();
Invalidate();
}
}
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index 555bce1b34f5..b0f2a512f4c0 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -2281,11 +2281,9 @@ bool EditEngine::UpdateFieldsOnly()
return pImpEditEngine->UpdateFields();
}
-void EditEngine::RemoveFields( bool bKeepFieldText, std::function<bool ( const SvxFieldData* )> isFieldData )
+void EditEngine::RemoveFields( std::function<bool ( const SvxFieldData* )> isFieldData )
{
-
- if ( bKeepFieldText )
- pImpEditEngine->UpdateFields();
+ pImpEditEngine->UpdateFields();
sal_Int32 nParas = pImpEditEngine->GetEditDoc().Count();
for ( sal_Int32 nPara = 0; nPara < nParas; nPara++ )
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx
index 89831ef5459a..7126a918a867 100644
--- a/editeng/source/outliner/outlin2.cxx
+++ b/editeng/source/outliner/outlin2.cxx
@@ -155,7 +155,7 @@ bool Outliner::UpdateFields()
void Outliner::RemoveFields( std::function<bool ( const SvxFieldData* )> isFieldData )
{
- pEditEngine->RemoveFields( true/*bKeepFieldText*/, isFieldData );
+ pEditEngine->RemoveFields( isFieldData );
}
void Outliner::SetWordDelimiters( const OUString& rDelimiters )
diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx
index 2a7e529f8097..4c87f062c0a3 100644
--- a/extensions/source/dbpilots/listcombowizard.cxx
+++ b/extensions/source/dbpilots/listcombowizard.cxx
@@ -214,18 +214,17 @@ namespace dbp
return true;
}
- Reference< XNameAccess > OLCPage::getTables(bool _bNeedIt)
+ Reference< XNameAccess > OLCPage::getTables()
{
Reference< XConnection > xConn = getFormConnection();
- DBG_ASSERT(!_bNeedIt || xConn.is(), "OLCPage::getTables: should have an active connection when reaching this page!");
- (void)_bNeedIt;
+ DBG_ASSERT(xConn.is(), "OLCPage::getTables: should have an active connection when reaching this page!");
Reference< XTablesSupplier > xSuppTables(xConn, UNO_QUERY);
Reference< XNameAccess > xTables;
if (xSuppTables.is())
xTables = xSuppTables->getTables();
- DBG_ASSERT(!_bNeedIt || xTables.is() || !xConn.is(), "OLCPage::getTables: got no tables from the connection!");
+ DBG_ASSERT(xTables.is() || !xConn.is(), "OLCPage::getTables: got no tables from the connection!");
return xTables;
}
@@ -233,7 +232,7 @@ namespace dbp
Sequence< OUString > OLCPage::getTableFields()
{
- Reference< XNameAccess > xTables = getTables(true);
+ Reference< XNameAccess > xTables = getTables();
Sequence< OUString > aColumnNames;
if (xTables.is())
{
@@ -320,7 +319,7 @@ namespace dbp
m_pSelectTable->Clear();
try
{
- Reference< XNameAccess > xTables = getTables(true);
+ Reference< XNameAccess > xTables = getTables();
Sequence< OUString > aTableNames;
if (xTables.is())
aTableNames = xTables->getElementNames();
diff --git a/extensions/source/dbpilots/listcombowizard.hxx b/extensions/source/dbpilots/listcombowizard.hxx
index 07d859660074..cd7c8a82b941 100644
--- a/extensions/source/dbpilots/listcombowizard.hxx
+++ b/extensions/source/dbpilots/listcombowizard.hxx
@@ -89,7 +89,7 @@ namespace dbp
bool isListBox() { return static_cast<OListComboWizard*>(getDialog())->isListBox(); }
protected:
- css::uno::Reference< css::container::XNameAccess > getTables(bool _bNeedIt);
+ css::uno::Reference< css::container::XNameAccess > getTables();
css::uno::Sequence< OUString > getTableFields();
};
diff --git a/framework/source/uielement/statusbarmanager.cxx b/framework/source/uielement/statusbarmanager.cxx
index 13f06912c241..fc47cd237af6 100644
--- a/framework/source/uielement/statusbarmanager.cxx
+++ b/framework/source/uielement/statusbarmanager.cxx
@@ -144,7 +144,7 @@ StatusBarManager::StatusBarManager(
m_xStatusbarControllerFactory = frame::theStatusbarControllerFactory::get(
::comphelper::getProcessComponentContext());
- m_pStatusBar->AdjustItemWidthsForHiDPI(true);
+ m_pStatusBar->AdjustItemWidthsForHiDPI();
m_pStatusBar->SetClickHdl( LINK( this, StatusBarManager, Click ) );
m_pStatusBar->SetDoubleClickHdl( LINK( this, StatusBarManager, DoubleClick ) );
}
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index b51b8b40a814..eec5b29048aa 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -452,9 +452,9 @@ public:
bool HasConvertibleTextPortion( LanguageType nLang );
virtual bool ConvertNextDocument();
- bool UpdateFields();
- bool UpdateFieldsOnly();
- void RemoveFields( bool bKeepFieldText, std::function<bool ( const SvxFieldData* )> isFieldData = [] (const SvxFieldData* ){return true;} );
+ bool UpdateFields();
+ bool UpdateFieldsOnly();
+ void RemoveFields( std::function<bool ( const SvxFieldData* )> isFieldData = [] (const SvxFieldData* ){return true;} );
sal_uInt16 GetFieldCount( sal_Int32 nPara ) const;
EFieldInfo GetFieldInfo( sal_Int32 nPara, sal_uInt16 nField ) const;
diff --git a/include/sfx2/frame.hxx b/include/sfx2/frame.hxx
index 2a7aa0615d03..b6b9699c5000 100644
--- a/include/sfx2/frame.hxx
+++ b/include/sfx2/frame.hxx
@@ -155,7 +155,7 @@ public:
SAL_DLLPRIVATE bool DoClose_Impl();
SAL_DLLPRIVATE void SetFrameInterface_Impl( const css::uno::Reference< css::frame::XFrame >& rFrame );
- SAL_DLLPRIVATE void ReleasingComponent_Impl( bool bSet );
+ SAL_DLLPRIVATE void ReleasingComponent_Impl();
SAL_DLLPRIVATE void GetViewData_Impl();
SAL_DLLPRIVATE void SetFrameType_Impl( sal_uInt32 );
SAL_DLLPRIVATE bool PrepareClose_Impl( bool bUI );
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx
index 5e75a2f53fae..9c45ffef51df 100644
--- a/include/svtools/treelistbox.hxx
+++ b/include/svtools/treelistbox.hxx
@@ -605,7 +605,7 @@ protected:
virtual void PreparePaint(vcl::RenderContext& rRenderContext, SvTreeListEntry& rEntry);
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
- void InitSettings(bool bBackground);
+ void InitSettings();
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
diff --git a/include/svx/framelinkarray.hxx b/include/svx/framelinkarray.hxx
index 2ae5e577d2dd..426ad58acb05 100644
--- a/include/svx/framelinkarray.hxx
+++ b/include/svx/framelinkarray.hxx
@@ -327,10 +327,8 @@ public:
// mirroring --------------------------------------------------------------
- /** Mirrors the entire array horizontally.
- @param bSwapDiag
- true = Swap top-left to bottom-right and bottom-left to top-right frame borders. */
- void MirrorSelfX( bool bSwapDiag );
+ /** Mirrors the entire array horizontally. */
+ void MirrorSelfX();
// drawing ----------------------------------------------------------------
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index b5e4290ceabf..0f53cc4fc8d5 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -492,7 +492,7 @@ public:
bar <b>always</b> implies a horizontal scroll bar
@seealso EnableNavigationBar
*/
- void ForceHideScrollbars( bool _bForce );
+ void ForceHideScrollbars();
css::uno::Reference< css::uno::XComponentContext >
getContext() const { return m_xContext; }
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 6380ee0b6d1a..6b5caa9b5016 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -343,7 +343,7 @@ public:
bool IsConvertToPolyObjPossible() const { ForcePossibilities(); return bCanConvToPoly; }
bool IsConvertToContourPossible() const { ForcePossibilities(); return bCanConvToContour; }
void ConvertMarkedToPathObj(bool bLineToArea);
- void ConvertMarkedToPolyObj(bool bLineToArea);
+ void ConvertMarkedToPolyObj();
// Align all marked objects vertically. Normally the SnapRect of an object is used.
void AlignMarkedObjects(SdrHorAlign eHor, SdrVertAlign eVert);
diff --git a/include/ucbhelper/contenthelper.hxx b/include/ucbhelper/contenthelper.hxx
index 58dbc00feb45..d05f552b23b6 100644
--- a/include/ucbhelper/contenthelper.hxx
+++ b/include/ucbhelper/contenthelper.hxx
@@ -281,11 +281,11 @@ protected:
* This method removes the propertyset containing the Additional Core
* Properties of the content.
*
- * @param bRecursive is a flag indicating whether propertysets for
- * children described by rOldKey shall be removed too.
+ * Propertysets for children described by rOldKey are removed too.
+ *
* @return True, if the operation succeeded - False, otherwise.
*/
- bool removeAdditionalPropertySet( bool bRecursive );
+ bool removeAdditionalPropertySet();
public:
/**
diff --git a/include/vcl/cursor.hxx b/include/vcl/cursor.hxx
index d71d387e8953..ab5a2e249d3e 100644
--- a/include/vcl/cursor.hxx
+++ b/include/vcl/cursor.hxx
@@ -57,7 +57,7 @@ public:
SAL_DLLPRIVATE void ImplDraw();
DECL_DLLPRIVATE_LINK_TYPED( ImplTimerHdl, Timer*, void );
SAL_DLLPRIVATE void ImplShow();
- SAL_DLLPRIVATE void ImplHide( bool bStopTimer );
+ SAL_DLLPRIVATE void ImplHide();
SAL_DLLPRIVATE void ImplResume( bool bRestore = false );
SAL_DLLPRIVATE bool ImplSuspend();
SAL_DLLPRIVATE void ImplNew();
diff --git a/include/vcl/status.hxx b/include/vcl/status.hxx
index 057cccbbc709..9c04e0df0117 100644
--- a/include/vcl/status.hxx
+++ b/include/vcl/status.hxx
@@ -105,7 +105,7 @@ public:
virtual ~StatusBar();
virtual void dispose() override;
- void AdjustItemWidthsForHiDPI(bool bAdjustHiDPI);
+ void AdjustItemWidthsForHiDPI();
virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) override;
diff --git a/reportdesign/source/ui/inc/ReportWindow.hxx b/reportdesign/source/ui/inc/ReportWindow.hxx
index fe478dfefe4e..36a59ac178dd 100644
--- a/reportdesign/source/ui/inc/ReportWindow.hxx
+++ b/reportdesign/source/ui/inc/ReportWindow.hxx
@@ -143,11 +143,11 @@ namespace rptui
sal_Int32 GetTotalWidth() const;
/** calculate the max width of the markers
+ * The end marker will not be used for calculation.
*
- * @param _bWithEnd if <TRUE/> the end marker will be used for calculation as well otherwise not.
* \return the max width
*/
- sal_Int32 getMaxMarkerWidth(bool _bWithEnd) const;
+ sal_Int32 getMaxMarkerWidth() const;
void ScrollChildren(const Point& _aThumbPos);
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx
index aaa87d0591d7..8e8b725c9463 100644
--- a/reportdesign/source/ui/report/ReportWindow.cxx
+++ b/reportdesign/source/ui/report/ReportWindow.cxx
@@ -142,12 +142,10 @@ void OReportWindow::showRuler(bool _bShow)
m_aViewsWindow->showRuler(_bShow);
}
-sal_Int32 OReportWindow::getMaxMarkerWidth(bool _bWithEnd) const
+sal_Int32 OReportWindow::getMaxMarkerWidth() const
{
Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH));
aStartWidth *= m_aViewsWindow->GetMapMode().GetScaleX();
- if ( _bWithEnd )
- aStartWidth += Fraction(long(REPORT_ENDMARKER_WIDTH));
return sal_Int32((long)aStartWidth);
}
diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx b/reportdesign/source/ui/report/ScrollHelper.cxx
index d20907f01326..dc9bc346c58a 100644
--- a/reportdesign/source/ui/report/ScrollHelper.cxx
+++ b/reportdesign/source/ui/report/ScrollHelper.cxx
@@ -272,7 +272,7 @@ void OScrollWindowHelper::unmarkAllObjects(OSectionView* _pSectionView)
sal_Int32 OScrollWindowHelper::getMaxMarkerWidth() const
{
- return m_aReportWindow->getMaxMarkerWidth(false/*_bWithEnd*/);
+ return m_aReportWindow->getMaxMarkerWidth();
}
void OScrollWindowHelper::showRuler(bool _bShow)
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index 28080b41b52f..653f14486e47 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -167,11 +167,11 @@ public:
osl::MutexGuard g(m_aMutex);
return m_nFlag;
}
- void addValue(T n)
+ void incValue()
{
//only one thread operate on the flag.
osl::MutexGuard g(m_aMutex);
- m_nFlag += n;
+ m_nFlag++;
}
void acquire() {m_aMutex.acquire();}
void release() {m_aMutex.release();}
@@ -239,7 +239,7 @@ protected:
{
while(schedule())
{
- m_aFlag.addValue(1);
+ m_aFlag.incValue();
ThreadHelper::thread_sleep_tenth_sec(1);
}
}
@@ -298,7 +298,7 @@ protected:
/// if the thread should terminate, schedule return false
while (m_aFlag.getValue() < 20 && schedule())
{
- m_aFlag.addValue(1);
+ m_aFlag.incValue();
ThreadHelper::thread_sleep_tenth_sec(1);
if (m_nWaitSec != 0)
@@ -346,7 +346,7 @@ protected:
{
while (m_aFlag.getValue() < 10)
{
- m_aFlag.addValue(1);
+ m_aFlag.incValue();
ThreadHelper::thread_sleep_tenth_sec(1);
}
}
@@ -391,7 +391,7 @@ protected:
//if the thread should terminate, schedule return false
while (schedule())
{
- m_aFlag.addValue(1);
+ m_aFlag.incValue();
}
}
void SAL_CALL onTerminated() override
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index e9c3833ffe12..b520d0ae1035 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1089,7 +1089,7 @@ public:
}
}
// change URL field to text (not possible otherwise, thus pType=0)
- mpEngine->RemoveFields(true);
+ mpEngine->RemoveFields();
bool bSpellErrors = mpEngine->HasOnlineSpellErrors();
bool bNeedObject = bSpellErrors || nParCount>1; // keep errors/paragraphs
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index fac9baea0b4f..eb671bfa8be8 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -1110,12 +1110,9 @@ void ScDocument::FillInfo(
}
}
- /* Mirror the entire frame array.
- 1st param = Mirror the vertical double line styles as well.
- 2nd param = Do not swap diagonal lines.
- */
+ /* Mirror the entire frame array. */
if( bLayoutRTL )
- rArray.MirrorSelfX( false );
+ rArray.MirrorSelfX();
}
ScTableInfo::ScTableInfo()
diff --git a/sc/source/filter/oox/formulaparser.cxx b/sc/source/filter/oox/formulaparser.cxx
index 32588ca292e6..c09cd0065061 100644
--- a/sc/source/filter/oox/formulaparser.cxx
+++ b/sc/source/filter/oox/formulaparser.cxx
@@ -467,7 +467,7 @@ protected:
size_t appendWhiteSpaceTokens( const WhiteSpaceVec* pSpaces );
size_t insertWhiteSpaceTokens( const WhiteSpaceVec* pSpaces, size_t nIndexFromEnd );
- size_t getOperandSize( size_t nOpCountFromEnd, size_t nOpIndex ) const;
+ size_t getOperandSize( size_t nOpIndex ) const;
void pushOperandSize( size_t nSize );
size_t popOperandSize();
@@ -727,11 +727,11 @@ size_t FormulaParserImpl::insertWhiteSpaceTokens( const WhiteSpaceVec* pSpaces,
return pSpaces ? pSpaces->size() : 0;
}
-size_t FormulaParserImpl::getOperandSize( size_t nOpCountFromEnd, size_t nOpIndex ) const
+size_t FormulaParserImpl::getOperandSize( size_t nOpIndex ) const
{
- OSL_ENSURE( (nOpIndex < nOpCountFromEnd) && (nOpCountFromEnd <= maOperandSizeStack.size()),
+ OSL_ENSURE( (nOpIndex < 1) && (1 <= maOperandSizeStack.size()),
"FormulaParserImpl::getOperandSize - invalid parameters" );
- return maOperandSizeStack[ maOperandSizeStack.size() - nOpCountFromEnd + nOpIndex ];
+ return maOperandSizeStack[ maOperandSizeStack.size() - 1 + nOpIndex ];
}
void FormulaParserImpl::pushOperandSize( size_t nSize )
@@ -749,8 +749,7 @@ size_t FormulaParserImpl::popOperandSize()
ApiToken& FormulaParserImpl::getOperandToken( size_t nOpIndex, size_t nTokenIndex )
{
- SAL_WARN_IF(
- getOperandSize( 1, nOpIndex ) <= nTokenIndex, "sc.filter",
+ SAL_WARN_IF( getOperandSize( nOpIndex ) <= nTokenIndex, "sc.filter",
"FormulaParserImpl::getOperandToken - invalid parameters" );
SizeTypeVector::const_iterator aIndexIt = maTokenIndexes.end();
for( SizeTypeVector::const_iterator aEnd = maOperandSizeStack.end(), aIt = aEnd - 1 + nOpIndex; aIt != aEnd; ++aIt )
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index 6a91afdb1732..833d6d7bf569 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -282,7 +282,7 @@ private:
void SetListMode ( NavListMode eMode, bool bSetSize = true );
void ShowList ( bool bShow, bool bSetSize );
- void ShowScenarios ( bool bShow, bool bSetSize );
+ void ShowScenarios ( bool bSetSize );
void SetDropMode(sal_uInt16 nNew);
sal_uInt16 GetDropMode() const { return nDropMode; }
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index 3e837fee52e1..29fe7e482463 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -97,7 +97,7 @@ public:
void EnterDataAtCursor( const OUString& rString ); //! Not used?
- SC_DLLPUBLIC void CutToClip( bool bIncludeObjects = false );
+ SC_DLLPUBLIC void CutToClip();
SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc = nullptr, bool bCut = false, bool bApi = false,
bool bIncludeObjects = false, bool bStopEdit = true );
SC_DLLPUBLIC bool CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRange, bool bCut = false,
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 9e7f8d216968..e48e57cabb73 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -1088,7 +1088,7 @@ void ScNavigatorDlg::SetListMode( NavListMode eMode, bool bSetSize )
break;
case NAV_LMODE_SCENARIOS:
- ShowScenarios( true, bSetSize );
+ ShowScenarios( bSetSize );
break;
}
@@ -1151,36 +1151,22 @@ void ScNavigatorDlg::ShowList( bool bShow, bool bSetSize )
}
}
-void ScNavigatorDlg::ShowScenarios( bool bShow, bool bSetSize )
+void ScNavigatorDlg::ShowScenarios( bool bSetSize )
{
FloatingWindow* pFloat = pContextWin!=nullptr ? pContextWin->GetFloatingWindow() : nullptr;
Size aSize = GetParent()->GetOutputSizePixel();
- if ( bShow )
- {
- Size aMinSize = aInitSize;
- aMinSize.Height() += nInitListHeight;
- if ( pFloat )
- pFloat->SetMinOutputSizePixel( aMinSize );
- aSize.Height() = nListModeHeight;
+ Size aMinSize = aInitSize;
+ aMinSize.Height() += nInitListHeight;
+ if ( pFloat )
+ pFloat->SetMinOutputSizePixel( aMinSize );
+ aSize.Height() = nListModeHeight;
- rBindings.Invalidate( SID_SELECT_SCENARIO );
- rBindings.Update( SID_SELECT_SCENARIO );
+ rBindings.Invalidate( SID_SELECT_SCENARIO );
+ rBindings.Update( SID_SELECT_SCENARIO );
- aWndScenarios->Show();
- aLbDocuments->Show();
- }
- else
- {
- if ( pFloat )
- {
- pFloat->SetMinOutputSizePixel( aInitSize );
- nListModeHeight = aSize.Height();
- }
- aSize.Height() = aInitSize.Height();
- aWndScenarios->Hide();
- aLbDocuments->Hide();
- }
+ aWndScenarios->Show();
+ aLbDocuments->Show();
aLbEntries->Hide();
if ( pFloat )
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index c81cd3b7b66b..d86d6694de8b 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -816,7 +816,7 @@ void ScUndoCut::Redo()
void ScUndoCut::Repeat(SfxRepeatTarget& rTarget)
{
if (dynamic_cast<const ScTabViewTarget*>( &rTarget) != nullptr)
- static_cast<ScTabViewTarget&>(rTarget).GetViewShell()->CutToClip( true );
+ static_cast<ScTabViewTarget&>(rTarget).GetViewShell()->CutToClip();
}
bool ScUndoCut::CanRepeat(SfxRepeatTarget& rTarget) const
diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx
index 29ac7bc5a818..99467b7b86cf 100644
--- a/sc/source/ui/vba/excelvbahelper.cxx
+++ b/sc/source/ui/vba/excelvbahelper.cxx
@@ -177,7 +177,7 @@ implnCut( const uno::Reference< frame::XModel>& xModel )
ScTabViewShell* pViewShell = getBestViewShell( xModel );
if ( pViewShell )
{
- pViewShell->CutToClip( true );
+ pViewShell->CutToClip();
// mark the copied transfer object so it is used in ScVbaRange::Insert
ScTransferObj* pClipObj = ScTransferObj::GetOwnClipboard( nullptr );
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index fea6f1a26ffd..a372a52e7d8b 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1272,7 +1272,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
case SID_CUT: // for graphs in DrawShell
{
WaitObject aWait( GetViewData()->GetDialogParent() );
- pTabViewShell->CutToClip( true );
+ pTabViewShell->CutToClip();
rReq.Done();
GetViewData()->SetPasteMode( (ScPasteFlags)(SC_PASTE_MODE | SC_PASTE_BORDER));
pTabViewShell->ShowCursor();
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 77cb01bdab6f..1acbd4d54c68 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -77,7 +77,7 @@ using namespace com::sun::star;
// C U T
-void ScViewFunc::CutToClip( bool bIncludeObjects )
+void ScViewFunc::CutToClip()
{
UpdateInputLine();
@@ -106,7 +106,7 @@ void ScViewFunc::CutToClip( bool bIncludeObjects )
MarkDataChanged();
}
- CopyToClip( nullptr, true, false, bIncludeObjects ); // copy to clipboard
+ CopyToClip( nullptr, true, false, true/*bIncludeObjects*/ ); // copy to clipboard
ScAddress aOldEnd( aRange.aEnd ); // combined cells in this range?
pDoc->ExtendMerge( aRange, true );
@@ -129,8 +129,7 @@ void ScViewFunc::CutToClip( bool bIncludeObjects )
rMark.MarkToMulti();
pDoc->DeleteSelection( InsertDeleteFlags::ALL, rMark );
- if ( bIncludeObjects )
- pDoc->DeleteObjectsInSelection( rMark );
+ pDoc->DeleteObjectsInSelection( rMark );
rMark.MarkToSimple();
if ( !AdjustRowHeight( aRange.aStart.Row(), aRange.aEnd.Row() ) )
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
index e537fff89e58..93e527d162f9 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
@@ -375,8 +375,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache)
}
}
-::std::unique_ptr<BitmapCache::CacheIndex> BitmapCache::GetCacheIndex (
- bool bIncludeNoPreview) const
+::std::unique_ptr<BitmapCache::CacheIndex> BitmapCache::GetCacheIndex() const
{
::osl::MutexGuard aGuard (maMutex);
@@ -391,7 +390,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache)
if ( iEntry->second.IsPrecious())
continue;
- if ( ! bIncludeNoPreview && ! iEntry->second.HasPreview())
+ if ( ! iEntry->second.HasPreview())
continue;
aSortedContainer.push_back(SortableBitmapContainer::value_type(
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
index dff7a63d0ee8..ff875ae59424 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
@@ -151,13 +151,9 @@ public:
part of) the cache. The entries of the index are sorted according
to last access times with the least recently access time first.
Entries with the precious flag set are omitted.
- @param bIncludeNoPreview
- When this flag is <TRUE/> entries with that have no preview
- bitmaps are included in the index. When the flag is <FALSE/> these entries
- are omitted.
+ Entries with that have no preview bitmaps are omitted.
*/
- ::std::unique_ptr<CacheIndex> GetCacheIndex (
- bool bIncludeNoPreview) const;
+ ::std::unique_ptr<CacheIndex> GetCacheIndex () const;
/** Compress the specified preview bitmap with the given bitmap
compressor. A reference to the compressor is stored for later
diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
index ce782e98e12b..d2e4b651ce9f 100644
--- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx
@@ -172,7 +172,7 @@ void CacheCompactionByCompression::Run()
SAL_INFO("sd.sls", OSL_THIS_FUNC << ": bitmap cache uses to much space: " << mrCache.GetSize() << " > " << mnMaximalCacheSize);
::std::unique_ptr< ::sd::slidesorter::cache::BitmapCache::CacheIndex> pIndex (
- mrCache.GetCacheIndex(false));
+ mrCache.GetCacheIndex());
::sd::slidesorter::cache::BitmapCache::CacheIndex::iterator iIndex;
for (iIndex=pIndex->begin(); iIndex!=pIndex->end(); ++iIndex)
{
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 47a7943b57d3..013bd14583cc 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -853,9 +853,9 @@ void SfxFrame::GrabFocusOnComponent_Impl()
pFocusWindow->GrabFocus();
}
-void SfxFrame::ReleasingComponent_Impl( bool bSet )
+void SfxFrame::ReleasingComponent_Impl()
{
- pImp->bReleasingComponent = bSet;
+ pImp->bReleasingComponent = true;
}
bool SfxFrame::IsInPlace() const
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 3e45135af02b..3c803a9a1a7e 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1044,7 +1044,7 @@ void SfxViewFrame::ReleaseObjectShell_Impl()
{
DBG_ASSERT( xObjSh.Is(), "no SfxObjectShell to release!" );
- GetFrame().ReleasingComponent_Impl( true );
+ GetFrame().ReleasingComponent_Impl();
if ( GetWindow().HasChildPathFocus( true ) )
{
DBG_ASSERT( !GetActiveChildFrame_Impl(), "Wrong active child frame!" );
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 402577ffeb6e..8f0a58cbab48 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -400,7 +400,7 @@ public:
void InitSelection();
void ResetCursor();
- inline void EndEditing( bool _bCancel );
+ inline void EndEditing();
void onTimeout();
@@ -419,10 +419,10 @@ inline void SvtFileView_Impl::EnableDelete( bool bEnable )
mbReplaceNames = false;
}
-inline void SvtFileView_Impl::EndEditing( bool _bCancel )
+inline void SvtFileView_Impl::EndEditing()
{
if ( mpCurView->IsEditingActive() )
- mpCurView->EndEditing(_bCancel);
+ mpCurView->EndEditing();
}
// functions -------------------------------------------------------------
@@ -1259,7 +1259,7 @@ void SvtFileView::EnableDelete( bool bEnable )
void SvtFileView::EndInplaceEditing()
{
- return mpImp->EndEditing( false/*_bCancel*/ );
+ return mpImp->EndEditing();
}
IMPL_LINK_TYPED( SvtFileView, HeaderSelect_Impl, HeaderBar*, pBar, void )
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 7c5887767ade..f0755ebecee4 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -82,7 +82,7 @@ public:
virtual void KeyInput( const KeyEvent& rKEvt ) override;
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
bool EditingCanceled() const { return bCanceled; }
- void StopEditing( bool bCancel = false );
+ void StopEditing();
bool IsGrabFocus() const { return bGrabFocus; }
};
@@ -3003,7 +3003,7 @@ IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, TextEditEndedHdl, LinkParamNone*,
void SvxIconChoiceCtrl_Impl::StopEntryEditing()
{
if( pEdit )
- pEdit->StopEditing( true/*bCancel*/ );
+ pEdit->StopEditing();
}
SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::GetFirstSelectedEntry() const
@@ -3179,11 +3179,11 @@ bool IcnViewEdit_Impl::PreNotify( NotifyEvent& rNEvt )
return false;
}
-void IcnViewEdit_Impl::StopEditing( bool bCancel )
+void IcnViewEdit_Impl::StopEditing()
{
if ( !bAlreadyInCallback )
{
- bCanceled = bCancel;
+ bCanceled = true;
CallCallBackHdl_Impl();
}
}
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index ec9831044721..833810ac3780 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1416,7 +1416,7 @@ void SvTreeListBox::InitTreeView()
SetSpaceBetweenEntries( 0 );
SetLineColor();
- InitSettings( true );
+ InitSettings();
ImplInitStyle();
SetTabs();
}
@@ -3715,7 +3715,7 @@ void SvTreeListBox::DataChanged( const DataChangedEvent& rDCEvt )
{
nEntryHeight = 0; // _together_ with true of 1. par (bFont) of InitSettings() a zero-height
// forces complete recalc of heights!
- InitSettings( true );
+ InitSettings();
Invalidate();
}
else
@@ -3751,7 +3751,7 @@ void SvTreeListBox::ApplySettings(vcl::RenderContext& rRenderContext)
pCheckButtonData->SetDefaultImages(this);
}
-void SvTreeListBox::InitSettings(bool bBackground)
+void SvTreeListBox::InitSettings()
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
vcl::Font aFont;
@@ -3763,8 +3763,7 @@ void SvTreeListBox::InitSettings(bool bBackground)
SetTextColor(rStyleSettings.GetFieldTextColor());
SetTextFillColor();
- if (bBackground)
- SetBackground(rStyleSettings.GetFieldColor());
+ SetBackground(rStyleSettings.GetFieldColor());
// always try to re-create default-SvLBoxButtonData
if( pCheckButtonData && pCheckButtonData->HasDefaultImages() )
diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx
index 513f3221d6c6..c47375073b61 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -47,7 +47,7 @@ struct Cell
inline bool IsMerged() const { return mbMergeOrig || mbOverlapX || mbOverlapY; }
- void MirrorSelfX( bool bMirrorStyles, bool bSwapDiag );
+ void MirrorSelfX( bool bSwapDiag );
};
typedef std::vector< long > LongVec;
@@ -64,23 +64,17 @@ Cell::Cell() :
{
}
-void Cell::MirrorSelfX( bool bMirrorStyles, bool bSwapDiag )
+void Cell::MirrorSelfX( bool bSwapDiag )
{
std::swap( maLeft, maRight );
std::swap( mnAddLeft, mnAddRight );
- if( bMirrorStyles )
- {
- maLeft.MirrorSelf();
- maRight.MirrorSelf();
- }
+ maLeft.MirrorSelf();
+ maRight.MirrorSelf();
if( bSwapDiag )
{
std::swap( maTLBR, maBLTR );
- if( bMirrorStyles )
- {
- maTLBR.MirrorSelf();
- maBLTR.MirrorSelf();
- }
+ maTLBR.MirrorSelf();
+ maBLTR.MirrorSelf();
}
}
@@ -857,7 +851,7 @@ void Array::SetUseDiagDoubleClipping( bool bSet )
}
// mirroring
-void Array::MirrorSelfX( bool bSwapDiag )
+void Array::MirrorSelfX()
{
CellVec aNewCells;
aNewCells.reserve( GetCellCount() );
@@ -868,7 +862,7 @@ void Array::MirrorSelfX( bool bSwapDiag )
for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol )
{
aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) );
- aNewCells.back().MirrorSelfX( true, bSwapDiag );
+ aNewCells.back().MirrorSelfX( false/*bSwapDiag*/ );
}
}
for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow )
diff --git a/svx/source/engine3d/view3d1.cxx b/svx/source/engine3d/view3d1.cxx
index d60346079a8e..75746f93e345 100644
--- a/svx/source/engine3d/view3d1.cxx
+++ b/svx/source/engine3d/view3d1.cxx
@@ -66,7 +66,7 @@ void E3dView::ConvertMarkedToPolyObj()
if (!pNewObj)
{
- SdrView::ConvertMarkedToPolyObj(false/*bLineToArea*/);
+ SdrView::ConvertMarkedToPolyObj();
}
}
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index db84d3073e2a..40d2e2a69b75 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -1375,12 +1375,12 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt)
return m_nOptions;
}
-void DbGridControl::ForceHideScrollbars( bool _bForce )
+void DbGridControl::ForceHideScrollbars()
{
- if ( m_bHideScrollbars == _bForce )
+ if ( m_bHideScrollbars )
return;
- m_bHideScrollbars = _bForce;
+ m_bHideScrollbars = true;
if ( adjustModeForScrollbars( m_nMode, m_bNavigationBar, m_bHideScrollbars ) )
SetMode( m_nMode );
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 2342c14253e9..8408869ea207 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1998,9 +1998,9 @@ void SdrEditView::ConvertMarkedToPathObj(bool bLineToArea)
ImpConvertTo(true, bLineToArea);
}
-void SdrEditView::ConvertMarkedToPolyObj(bool bLineToArea)
+void SdrEditView::ConvertMarkedToPolyObj()
{
- ImpConvertTo(false, bLineToArea);
+ ImpConvertTo(false, false/*bLineToArea*/);
}
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index 5b5c5825bc3d..38a30208286f 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -176,7 +176,7 @@ void SdrUndoGroup::SdrRepeat(SdrView& rView)
case SDRREPFUNC_OBJ_COMBINE_ONEPOLY : rView.CombineMarkedObjects(); break;
case SDRREPFUNC_OBJ_DISMANTLE_POLYS : rView.DismantleMarkedObjects(); break;
case SDRREPFUNC_OBJ_DISMANTLE_LINES : rView.DismantleMarkedObjects(true); break;
- case SDRREPFUNC_OBJ_CONVERTTOPOLY : rView.ConvertMarkedToPolyObj(false); break;
+ case SDRREPFUNC_OBJ_CONVERTTOPOLY : rView.ConvertMarkedToPolyObj(); break;
case SDRREPFUNC_OBJ_CONVERTTOPATH : rView.ConvertMarkedToPathObj(false); break;
case SDRREPFUNC_OBJ_GROUP : rView.GroupMarked(); break;
case SDRREPFUNC_OBJ_UNGROUP : rView.UnGroupMarked(); break;
diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx
index 85cc0be48306..bce4ccb46e48 100644
--- a/sw/inc/accmap.hxx
+++ b/sw/inc/accmap.hxx
@@ -203,8 +203,7 @@ public:
// Invalidate state of whole tree. If an action is open, this call
// is processed when the last action ends.
- void InvalidateStates( AccessibleStates _nStates,
- const SwFrame* _pFrame = nullptr );
+ void InvalidateEditableStates( const SwFrame* _pFrame );
void InvalidateRelationSet( const SwFrame* pMaster, const SwFrame* pFollow );
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx
index 8f371e84e6a3..7228b63b27dc 100644
--- a/sw/inc/authfld.hxx
+++ b/sw/inc/authfld.hxx
@@ -153,7 +153,7 @@ class SwAuthorityField : public SwField
public:
/// For internal use only, in general continue using ExpandField() instead.
- OUString ConditionalExpand(ToxAuthorityField eField) const;
+ OUString ConditionalExpandAuthIdentifier() const;
//To handle Citation
SW_DLLPUBLIC OUString ExpandCitation(ToxAuthorityField eField) const;
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index a12d746ada61..f3bf55a0d2ba 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -450,7 +450,7 @@ public:
*/
bool HasShellFocus() const { return m_bHasFocus; }
void ShellLoseFocus();
- void ShellGetFocus( bool bUpdate = true );
+ void ShellGetFocus();
// Methods for displaying or hiding the visible text cursor.
void ShowCursor();
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 888916417151..295b934d3094 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -380,7 +380,7 @@ public:
bool GetFlyFrameAttr( SfxItemSet &rSet ) const;
bool SetFlyFrameAttr( SfxItemSet &rSet );
static SfxItemSet makeItemSetFromFormatAnchor(SfxItemPool& rPool, const SwFormatAnchor &rAnchor);
- bool ResetFlyFrameAttr( sal_uInt16 nWhich, const SfxItemSet* pSet = nullptr );
+ bool ResetFlyFrameAttr( const SfxItemSet* pSet );
const SwFrameFormat *NewFlyFrame( const SfxItemSet &rSet, bool bAnchValid = false,
SwFrameFormat *pParent = nullptr );
void SetFlyPos( const Point &rAbsPos);
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 712256372a2d..24e860d4c744 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -259,7 +259,7 @@ public:
// hide the Del-Redlines via Copy and Delete.
// Otherwise at Move the attribution would be handled incorrectly.
// All other callers must always give 0.
- void CallDisplayFunc(sal_uInt16 nLoop, size_t nMyPos);
+ void CallDisplayFunc(size_t nMyPos);
void Show(sal_uInt16 nLoop , size_t nMyPos);
void Hide(sal_uInt16 nLoop , size_t nMyPos);
void ShowOriginal(sal_uInt16 nLoop, size_t nMyPos);
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index 02cfbe1751ed..b23e1beb5e1f 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -526,8 +526,7 @@ struct SwReaderWriterEntry
namespace SwReaderWriter
{
- /// Return reader based on ReaderWriterEnum.
- SW_DLLPUBLIC Reader* GetReader( ReaderWriterEnum eReader );
+ SW_DLLPUBLIC Reader* GetRtfReader();
/// Return reader based on the name.
Reader* GetReader( const OUString& rFltName );
diff --git a/sw/qa/extras/mailmerge/mailmerge.cxx b/sw/qa/extras/mailmerge/mailmerge.cxx
index c54998afe182..647257636c7e 100644
--- a/sw/qa/extras/mailmerge/mailmerge.cxx
+++ b/sw/qa/extras/mailmerge/mailmerge.cxx
@@ -167,12 +167,12 @@ public:
/**
* Like parseExport(), but for given mail merge document.
*/
- xmlDocPtr parseMailMergeExport(int number, const OUString& rStreamName = OUString("word/document.xml"))
+ xmlDocPtr parseMailMergeExport(const OUString& rStreamName)
{
if (mnCurOutputType != text::MailMergeType::FILE)
return nullptr;
- OUString name = mailMergeOutputPrefix + OUString::number( number ) + ".odt";
+ OUString name = mailMergeOutputPrefix + OUString::number( 0 ) + ".odt";
return parseExportInternal( mailMergeOutputURL + "/" + name, rStreamName );
}
@@ -315,7 +315,7 @@ DECLARE_FILE_MAILMERGE_TEST(testMissingDefaultLineColor, "missing-default-line-c
// And the default value is black (wasn't copied properly by mailmerge).
CPPUNIT_ASSERT_EQUAL( COL_BLACK, lineColor );
// And check that the resulting file has the proper default.
- xmlDocPtr pXmlDoc = parseMailMergeExport( 0, "styles.xml" );
+ xmlDocPtr pXmlDoc = parseMailMergeExport( "styles.xml" );
CPPUNIT_ASSERT_EQUAL( OUString( "graphic" ), getXPath(pXmlDoc, "/office:document-styles/office:styles/style:default-style[1]", "family"));
CPPUNIT_ASSERT_EQUAL( OUString( "#000000" ), getXPath(pXmlDoc, "/office:document-styles/office:styles/style:default-style[1]/style:graphic-properties", "stroke-color"));
}
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index d80cacb96287..64b22096a9f5 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -610,7 +610,7 @@ void SwUiWriterTest::testImportRTF()
OString aData = "{\\rtf1 Hello world!\\par}";
SvMemoryStream aStream(const_cast<sal_Char*>(aData.getStr()), aData.getLength(), StreamMode::READ);
SwReader aReader(aStream, OUString(), OUString(), *pWrtShell->GetCursor());
- Reader* pRTFReader = SwReaderWriter::GetReader(READER_WRITER_RTF);
+ Reader* pRTFReader = SwReaderWriter::GetRtfReader();
CPPUNIT_ASSERT(pRTFReader != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uLong(0), aReader.Read(*pRTFReader));
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index aa00caadbd83..abeb69f24e17 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -2834,8 +2834,7 @@ void SwAccessibleMap::SetCursorContext(
mxCursorContext = xAcc;
}
-void SwAccessibleMap::InvalidateStates( AccessibleStates _nStates,
- const SwFrame* _pFrame )
+void SwAccessibleMap::InvalidateEditableStates( const SwFrame* _pFrame )
{
// Start with the frame or the first upper that is accessible
SwAccessibleChild aFrameOrObj( _pFrame );
@@ -2852,13 +2851,13 @@ void SwAccessibleMap::InvalidateStates( AccessibleStates _nStates,
SwAccessibleEvent_Impl aEvent( SwAccessibleEvent_Impl::CARET_OR_STATES,
pAccImpl,
SwAccessibleChild(pAccImpl->GetFrame()),
- _nStates );
+ AccessibleStates::EDITABLE );
AppendEvent( aEvent );
}
else
{
FireEvents();
- pAccImpl->InvalidateStates( _nStates );
+ pAccImpl->InvalidateStates( AccessibleStates::EDITABLE );
}
}
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 0f8d88e1991b..464adbdcc209 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -2183,14 +2183,12 @@ void SwCursorShell::ShellLoseFocus()
m_bHasFocus = false;
}
-void SwCursorShell::ShellGetFocus( bool bUpdate )
+void SwCursorShell::ShellGetFocus()
{
m_bHasFocus = true;
if( !m_bBasicHideCursor && VisArea().Width() )
{
- UpdateCursor( static_cast<sal_uInt16>( bUpdate ?
- SwCursorShell::CHKRANGE|SwCursorShell::SCROLLWIN
- : SwCursorShell::CHKRANGE ) );
+ UpdateCursor( static_cast<sal_uInt16>( SwCursorShell::CHKRANGE ) );
ShowCursors( m_bSVCursorVis );
}
}
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 9b7dc906f8f8..5d6550450586 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -297,7 +297,7 @@ bool SwRedlineTable::Insert( SwRangeRedline* p )
{
std::pair<vector_type::const_iterator, bool> rv = maVector.insert( p );
size_t nP = rv.first - begin();
- p->CallDisplayFunc(0, nP);
+ p->CallDisplayFunc(nP);
return rv.second;
}
return InsertWithValidRanges( p );
@@ -309,7 +309,7 @@ bool SwRedlineTable::Insert( SwRangeRedline* p, sal_uInt16& rP )
{
std::pair<vector_type::const_iterator, bool> rv = maVector.insert( p );
rP = rv.first - begin();
- p->CallDisplayFunc(0, rP);
+ p->CallDisplayFunc(rP);
return rv.second;
}
return InsertWithValidRanges( p, &rP );
@@ -406,7 +406,7 @@ bool SwRedlineTable::InsertWithValidRanges( SwRangeRedline* p, sal_uInt16* pInsP
pNew->HasValidRange() &&
Insert( pNew, nInsPos ) )
{
- pNew->CallDisplayFunc(0, nInsPos);
+ pNew->CallDisplayFunc(nInsPos);
bAnyIns = true;
pNew = nullptr;
if( pInsPos && *pInsPos < nInsPos )
@@ -913,18 +913,18 @@ bool SwRangeRedline::HasValidRange() const
return false;
}
-void SwRangeRedline::CallDisplayFunc(sal_uInt16 nLoop, size_t nMyPos)
+void SwRangeRedline::CallDisplayFunc(size_t nMyPos)
{
switch( nsRedlineMode_t::REDLINE_SHOW_MASK & GetDoc()->getIDocumentRedlineAccess().GetRedlineMode() )
{
case nsRedlineMode_t::REDLINE_SHOW_INSERT | nsRedlineMode_t::REDLINE_SHOW_DELETE:
- Show(nLoop, nMyPos);
+ Show(0, nMyPos);
break;
case nsRedlineMode_t::REDLINE_SHOW_INSERT:
- Hide(nLoop, nMyPos);
+ Hide(0, nMyPos);
break;
case nsRedlineMode_t::REDLINE_SHOW_DELETE:
- ShowOriginal(nLoop, nMyPos);
+ ShowOriginal(0, nMyPos);
break;
}
}
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 94f21ab19c63..af416ba49060 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -1246,7 +1246,7 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd )
break;
case SotClipboardFormatId::RTF:
- pRead = SwReaderWriter::GetReader( READER_WRITER_RTF );
+ pRead = SwReaderWriter::GetRtfReader();
break;
case SotClipboardFormatId::SIMPLE_FILE:
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index e92383cfc5cf..8f65c6abffc1 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -515,14 +515,14 @@ SwAuthorityField::~SwAuthorityField()
OUString SwAuthorityField::Expand() const
{
- return ConditionalExpand(AUTH_FIELD_IDENTIFIER);
+ return ConditionalExpandAuthIdentifier();
}
-OUString SwAuthorityField::ConditionalExpand(ToxAuthorityField eField) const
+OUString SwAuthorityField::ConditionalExpandAuthIdentifier() const
{
SwAuthorityFieldType* pAuthType = static_cast<SwAuthorityFieldType*>(GetTyp());
OUString sRet;
- if(pAuthType->GetPrefix() && eField != AUTH_FIELD_TITLE)
+ if(pAuthType->GetPrefix())
sRet = OUString(pAuthType->GetPrefix());
if( pAuthType->IsSequence() )
@@ -539,7 +539,7 @@ OUString SwAuthorityField::ConditionalExpand(ToxAuthorityField eField) const
if(pEntry)
sRet += pEntry->GetAuthorField(AUTH_FIELD_IDENTIFIER);
}
- if(pAuthType->GetSuffix() && eField != AUTH_FIELD_TITLE)
+ if(pAuthType->GetSuffix())
sRet += OUString(pAuthType->GetSuffix());
return sRet;
}
diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx
index 979a71e30abb..9069fa608dc9 100644
--- a/sw/source/core/fields/fldbas.cxx
+++ b/sw/source/core/fields/fldbas.cxx
@@ -408,7 +408,7 @@ OUString SwField::ExpandField(bool const bCached) const
if (GetTypeId() == TYP_AUTHORITY)
{
const SwAuthorityField* pAuthorityField = static_cast<const SwAuthorityField*>(this);
- m_Cache = pAuthorityField->ConditionalExpand(AUTH_FIELD_IDENTIFIER);
+ m_Cache = pAuthorityField->ConditionalExpandAuthIdentifier();
}
else
m_Cache = Expand();
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 538805fa65fe..82f103de4930 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -1112,41 +1112,35 @@ bool SwFEShell::SetDrawingAttr( SfxItemSet& rSet )
return bRet;
}
-// Reset requested attributes or the ones contained in the set.
-bool SwFEShell::ResetFlyFrameAttr( sal_uInt16 nWhich, const SfxItemSet* pSet )
+// Reset attributes contained in the set.
+bool SwFEShell::ResetFlyFrameAttr( const SfxItemSet* pSet )
{
bool bRet = false;
- if( RES_ANCHOR != nWhich && RES_CHAIN != nWhich && RES_CNTNT != nWhich )
+ SET_CURR_SHELL( this );
+
+ SwFlyFrame *pFly = GetSelectedOrCurrFlyFrame();
+ OSL_ENSURE( pFly, "SetFlyFrameAttr, no Fly selected." );
+ if( pFly )
{
- SET_CURR_SHELL( this );
+ StartAllAction();
- SwFlyFrame *pFly = GetSelectedOrCurrFlyFrame();
- OSL_ENSURE( pFly, "SetFlyFrameAttr, no Fly selected." );
- if( pFly )
+ SfxItemIter aIter( *pSet );
+ const SfxPoolItem* pItem = aIter.FirstItem();
+ while( pItem )
{
- StartAllAction();
-
- if( pSet )
+ if( !IsInvalidItem( pItem ) )
{
- SfxItemIter aIter( *pSet );
- const SfxPoolItem* pItem = aIter.FirstItem();
- while( pItem )
- {
- if( !IsInvalidItem( pItem ) &&
- RES_ANCHOR != ( nWhich = pItem->Which() ) &&
- RES_CHAIN != nWhich && RES_CNTNT != nWhich )
- pFly->GetFormat()->ResetFormatAttr( nWhich );
- pItem = aIter.NextItem();
- }
+ sal_uInt16 nWhich = pItem->Which();
+ if( RES_ANCHOR != nWhich && RES_CHAIN != nWhich && RES_CNTNT != nWhich )
+ pFly->GetFormat()->ResetFormatAttr( nWhich );
}
- else
- pFly->GetFormat()->ResetFormatAttr( nWhich );
-
- bRet = true;
- EndAllActionAndCall();
- GetDoc()->getIDocumentState().SetModified();
+ pItem = aIter.NextItem();
}
+
+ bRet = true;
+ EndAllActionAndCall();
+ GetDoc()->getIDocumentState().SetModified();
}
return bRet;
}
diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx
index d5c8f9746da9..b67b1fedb84c 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -278,7 +278,7 @@ FrameTypeFlags SwFEShell::GetFrameType( const Point *pPt, bool bStopAtFly ) cons
void SwFEShell::ShellGetFocus()
{
::SetShell( this );
- SwCursorShell::ShellGetFocus( false/*bUpdate*/ );
+ SwCursorShell::ShellGetFocus();
if ( HasDrawView() )
{
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 8a18f6111e30..81faabbf6d6d 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -202,15 +202,13 @@ class SW_DLLPUBLIC SwFrame: public SwClient, public SfxBroadcaster
'All footnotes' is no longer treated. Instead each footnote is treated
as an own environment.
- @param _bInSameFootnote
- input parameter - boolean indicating, that the found previous content
- frame has to be in the same footnote frame. This parameter is only
+ The found previous content frame has to be in the same footnote frame. This is only
relevant for flow frames in footnotes.
@return SwContentFrame*
pointer to the found previous content frame. It's NULL, if none exists.
*/
- SwContentFrame* _FindPrevCnt( const bool _bInSameFootnote = false );
+ SwContentFrame* _FindPrevCnt();
void _UpdateAttrFrame( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 & );
SwFrame* _GetIndNext();
diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx
index 326fa3a6c31e..23ad78c17677 100644
--- a/sw/source/core/layout/findfrm.cxx
+++ b/sw/source/core/layout/findfrm.cxx
@@ -171,7 +171,7 @@ SwContentFrame* SwFrame::FindPrevCnt( )
if ( GetPrev() && GetPrev()->IsContentFrame() )
return static_cast<SwContentFrame*>(GetPrev());
else
- return _FindPrevCnt( true );
+ return _FindPrevCnt();
}
const SwContentFrame* SwFrame::FindPrevCnt() const
@@ -179,7 +179,7 @@ const SwContentFrame* SwFrame::FindPrevCnt() const
if ( GetPrev() && GetPrev()->IsContentFrame() )
return static_cast<const SwContentFrame*>(GetPrev());
else
- return const_cast<SwFrame*>(this)->_FindPrevCnt( true );
+ return const_cast<SwFrame*>(this)->_FindPrevCnt();
}
SwContentFrame *SwFrame::FindNextCnt( const bool _bInSameFootnote )
@@ -943,7 +943,7 @@ SwContentFrame *SwFrame::_FindNextCnt( const bool _bInSameFootnote )
OD 2005-11-30 #i27138#
*/
-SwContentFrame* SwFrame::_FindPrevCnt( const bool _bInSameFootnote )
+SwContentFrame* SwFrame::_FindPrevCnt()
{
if ( !IsFlowFrame() )
{
@@ -1012,7 +1012,7 @@ SwContentFrame* SwFrame::_FindPrevCnt( const bool _bInSameFootnote )
{
const bool bInDocBody = pCurrContentFrame->IsInDocBody();
const bool bInFootnote = pCurrContentFrame->IsInFootnote();
- if ( bInDocBody || ( bInFootnote && !_bInSameFootnote ) )
+ if ( bInDocBody )
{
// handling for environments 'footnotes' and 'document body frames':
// Assure that found previous frame is also in one of these
@@ -1027,7 +1027,7 @@ SwContentFrame* SwFrame::_FindPrevCnt( const bool _bInSameFootnote )
pPrevContentFrame = pPrevContentFrame->GetPrevContentFrame();
}
}
- else if ( bInFootnote && _bInSameFootnote )
+ else if ( bInFootnote )
{
// handling for environments 'each footnote':
// Assure that found next content frame belongs to the same footnotes
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 66a914e7385b..ca16387f4202 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -2238,7 +2238,7 @@ SwLayIdle::SwLayIdle( SwRootFrame *pRt, SwViewShellImp *pI ) :
// CursorShell and it doesn't paint the selection.
pCursorShell->ShellLoseFocus();
pCursorShell->UnlockPaint( true );
- pCursorShell->ShellGetFocus( false );
+ pCursorShell->ShellGetFocus();
}
else
rSh.UnlockPaint( true );
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx
index 7d6017ce23d7..b64bf0fd6e06 100644
--- a/sw/source/core/view/viewimp.cxx
+++ b/sw/source/core/view/viewimp.cxx
@@ -351,12 +351,12 @@ void SwViewShellImp::InvalidateAccessibleEditableState( bool bAllShells,
for(SwViewShell& rTmp : GetShell()->GetRingContainer())
{
if( rTmp.Imp()->IsAccessible() )
- rTmp.Imp()->GetAccessibleMap().InvalidateStates( AccessibleStates::EDITABLE, pFrame );
+ rTmp.Imp()->GetAccessibleMap().InvalidateEditableStates( pFrame );
}
}
else if( IsAccessible() )
{
- GetAccessibleMap().InvalidateStates( AccessibleStates::EDITABLE, pFrame );
+ GetAccessibleMap().InvalidateEditableStates( pFrame );
}
}
diff --git a/sw/source/filter/basflt/fltini.cxx b/sw/source/filter/basflt/fltini.cxx
index a149396d794c..76a729fef2b4 100644
--- a/sw/source/filter/basflt/fltini.cxx
+++ b/sw/source/filter/basflt/fltini.cxx
@@ -159,9 +159,9 @@ oslGenericFunction Filters::GetMswordLibSymbol( const char *pSymbol )
namespace SwReaderWriter {
-Reader* GetReader( ReaderWriterEnum eReader )
+Reader* GetRtfReader()
{
- return aReaderWriter[eReader].GetReader();
+ return aReaderWriter[READER_WRITER_RTF].GetReader();
}
void GetWriter( const OUString& rFltName, const OUString& rBaseURL, WriterRef& xRet )
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 469080f4497a..f601f15a10b3 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1666,7 +1666,7 @@ bool SwTransferable::_PasteFileContent( TransferableDataHelper& rData,
{
pStream = &xStrm;
if( SotClipboardFormatId::RTF == nFormat )
- pRead = SwReaderWriter::GetReader( READER_WRITER_RTF );
+ pRead = SwReaderWriter::GetRtfReader();
else if( !pRead )
{
pRead = ReadHTML;
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index ff55a62c17d2..15fb8fb11aa2 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -439,7 +439,7 @@ void SwDrawTextShell::ExecDraw(SfxRequest &rReq)
case FN_FORMAT_RESET: // delete hard text attributes
{
pOLV->RemoveAttribsKeepLanguages( true );
- pOLV->GetEditView().GetEditEngine()->RemoveFields(true);
+ pOLV->GetEditView().GetEditEngine()->RemoveFields();
rReq.Done();
}
break;
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index f1053fbafb7b..0c89f8c535e6 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1580,7 +1580,7 @@ void SwWrtShell::AutoUpdateFrame( SwFrameFormat* pFormat, const SfxItemSet& rSty
{
StartAction();
- ResetFlyFrameAttr( 0, &rStyleSet );
+ ResetFlyFrameAttr( &rStyleSet );
pFormat->SetFormatAttr( rStyleSet );
EndAction();
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
index 718de574a830..6d6a9a4d063e 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
@@ -486,7 +486,7 @@ uno::Any SAL_CALL HierarchyContent::execute(
}
// Remove own and all children's Additional Core Properties.
- removeAdditionalPropertySet( true );
+ removeAdditionalPropertySet();
}
else if ( aCommand.Name == "transfer" && isFolder() && !isReadOnly() )
{
@@ -1826,7 +1826,7 @@ void HierarchyContent::transfer(
}
// Remove own and all children's Additional Core Properties.
- xSource->removeAdditionalPropertySet( true );
+ xSource->removeAdditionalPropertySet();
}
}
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index df53c1f7350d..f821140ca3e7 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -578,7 +578,7 @@ uno::Any SAL_CALL Content::execute(
}
// Remove own and all children's Additional Core Properties.
- removeAdditionalPropertySet( true );
+ removeAdditionalPropertySet();
}
else if ( aCommand.Name == "transfer" )
{
@@ -2061,7 +2061,7 @@ void Content::transfer(
}
// Remove own and all children's Additional Core Properties.
- xSource->removeAdditionalPropertySet( true );
+ xSource->removeAdditionalPropertySet();
}
}
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx
index 07a97adfd27e..37a58f1a29b3 100644
--- a/ucb/source/ucp/tdoc/tdoc_content.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_content.cxx
@@ -550,7 +550,7 @@ uno::Any SAL_CALL Content::execute(
}
// Remove own and all children's Additional Core Properties.
- removeAdditionalPropertySet( true );
+ removeAdditionalPropertySet();
}
else if ( aCommand.Name == "transfer" )
{
@@ -2202,7 +2202,7 @@ void Content::transfer(
}
// Remove own and all children's Additional Core Properties.
- if ( !xSource->removeAdditionalPropertySet( true ) )
+ if ( !xSource->removeAdditionalPropertySet() )
{
uno::Any aProps
= uno::makeAny(
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index e0eeeeaac6eb..50dc91cccfe0 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -546,7 +546,7 @@ uno::Any SAL_CALL Content::execute(
destroy( bDeletePhysical );
// Remove own and all children's Additional Core Properties.
- removeAdditionalPropertySet( true );
+ removeAdditionalPropertySet();
}
else if ( aCommand.Name == "transfer" && isFolder( Environment ) )
{
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index 36aef580543d..b66c6687012c 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -673,10 +673,10 @@ bool ContentImplHelper::copyAdditionalPropertySet(
rSourceKey, rTargetKey, bRecursive );
}
-bool ContentImplHelper::removeAdditionalPropertySet( bool bRecursive )
+bool ContentImplHelper::removeAdditionalPropertySet()
{
return m_xProvider->removeAdditionalPropertySet(
- m_xIdentifier->getContentIdentifier(), bRecursive );
+ m_xIdentifier->getContentIdentifier(), true/*bRecursive*/ );
}
void ContentImplHelper::notifyPropertiesChange(
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 0e8a6771c3ae..1318d535d6d8 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -227,10 +227,9 @@ void vcl::Cursor::ImplShow()
ImplDoShow( true/*bDrawDirect*/, false );
}
-void vcl::Cursor::ImplHide( bool i_bStopTimer )
+void vcl::Cursor::ImplHide()
{
- assert( i_bStopTimer );
- ImplDoHide( !i_bStopTimer );
+ ImplDoHide( false );
}
void vcl::Cursor::ImplResume( bool bRestore )
@@ -325,7 +324,7 @@ void vcl::Cursor::Hide()
if ( mbVisible )
{
mbVisible = false;
- ImplHide( true );
+ ImplHide();
}
}
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx
index 94a8f9757e36..892d419074a2 100644
--- a/vcl/source/window/mouse.cxx
+++ b/vcl/source/window/mouse.cxx
@@ -320,7 +320,7 @@ void Window::ImplGrabFocus( GetFocusFlags nFlags )
{
// Cursor hidden
if ( pOldFocusWindow->mpWindowImpl->mpCursor )
- pOldFocusWindow->mpWindowImpl->mpCursor->ImplHide( true );
+ pOldFocusWindow->mpWindowImpl->mpCursor->ImplHide();
}
// !!!!! due to old SV-Office Activate/Deactivate handling
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 9a45ee6d9d6a..db6c61739224 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -168,9 +168,9 @@ void StatusBar::dispose()
Window::dispose();
}
-void StatusBar::AdjustItemWidthsForHiDPI(bool bAdjustHiDPI)
+void StatusBar::AdjustItemWidthsForHiDPI()
{
- mbAdjustHiDPI = bAdjustHiDPI;
+ mbAdjustHiDPI = true;
}
void StatusBar::ApplySettings(vcl::RenderContext& rRenderContext)
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 2e5419429d42..4e9a161bf6b6 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3062,7 +3062,7 @@ void Window::SetCursor( vcl::Cursor* pCursor )
if ( mpWindowImpl->mpCursor != pCursor )
{
if ( mpWindowImpl->mpCursor )
- mpWindowImpl->mpCursor->ImplHide( true );
+ mpWindowImpl->mpCursor->ImplHide();
mpWindowImpl->mpCursor = pCursor;
if ( pCursor )
pCursor->ImplShow();
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 4fba05c55662..b2de412866d4 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -1786,7 +1786,7 @@ IMPL_LINK_NOARG_TYPED(vcl::Window, ImplAsyncFocusHdl, void*, void)
pSVData->maWinData.mpFocusWin = nullptr;
if ( pFocusWin->ImplGetWindowImpl()->mpCursor )
- pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide( true );
+ pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide();
// Deaktivate rufen
vcl::Window* pOldFocusWindow = pFocusWin;
@@ -1873,7 +1873,7 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow )
vcl::Window* pFocusWin = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin;
if ( pFocusWin && pFocusWin->ImplGetWindowImpl()->mpCursor )
- pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide( true );
+ pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide();
}
struct DelayedCloseEvent