summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 13:02:42 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 13:52:17 +0200
commit7d769f9df5b95d717f3cd045dbd8f82ff2de27a1 (patch)
treef04de671670a533ccffe20bf3aa0fa9c5f837a5d
parent0670872ce0d191cf93481215025cafd2062b8a8f (diff)
loplugin: defaultparams
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
-rw-r--r--desktop/source/app/dispatchwatcher.cxx8
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx10
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx2
-rw-r--r--desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx4
-rw-r--r--desktop/source/deployment/gui/license_dialog.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx6
-rw-r--r--desktop/source/deployment/registry/executable/dp_executable.cxx2
-rw-r--r--sdext/source/minimizer/graphiccollector.cxx2
-rw-r--r--sdext/source/minimizer/informationdialog.cxx10
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx12
-rw-r--r--slideshow/source/engine/shapes/drawshapesubsetting.cxx2
-rw-r--r--slideshow/source/engine/shapes/gdimtftools.cxx2
-rw-r--r--slideshow/source/engine/slide/layer.cxx2
-rw-r--r--slideshow/source/engine/slideview.cxx4
-rw-r--r--starmath/source/cursor.cxx20
-rw-r--r--starmath/source/dialog.cxx22
-rw-r--r--starmath/source/edit.cxx10
-rw-r--r--starmath/source/visitors.cxx8
-rw-r--r--stoc/source/javavm/javavm.cxx2
-rw-r--r--stoc/source/simpleregistry/simpleregistry.cxx2
-rw-r--r--stoc/source/typeconv/convert.cxx2
-rw-r--r--svgio/source/svgreader/svgclippathnode.cxx4
-rw-r--r--svgio/source/svgreader/svggradientnode.cxx4
-rw-r--r--svgio/source/svgreader/svgmarkernode.cxx4
-rw-r--r--svgio/source/svgreader/svgmasknode.cxx8
-rw-r--r--svgio/source/svgreader/svgpatternnode.cxx8
-rw-r--r--svl/source/fsstor/fsstorage.cxx2
28 files changed, 83 insertions, 83 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index f0b29ecde2d4..77d04a2b77f2 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -241,7 +241,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
{
bSetInputFilter = true;
aForcedInputFilter = aDispatchRequest.aURL;
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
continue;
}
@@ -478,7 +478,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
aDispatchRequest.aRequestType == REQUEST_FORCENEW )
{
// request is completed
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
}
else if ( aDispatchRequest.aRequestType == REQUEST_PRINT ||
aDispatchRequest.aRequestType == REQUEST_PRINTTO ||
@@ -695,7 +695,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
}
// request is completed
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
}
}
}
@@ -760,7 +760,7 @@ void SAL_CALL DispatchWatcher::dispatchFinished( const DispatchResultEvent& ) th
osl::ClearableMutexGuard aGuard( GetMutex() );
sal_Int16 nCount = --m_nRequestCount;
aGuard.clear();
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
if ( !nCount && !OfficeIPCThread::AreRequestsPending() )
{
// We have to check if we have an open task otherwise we have to shutdown the office.
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 96c1097bf0a0..767500d8eb41 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -709,9 +709,9 @@ ExtMgrDialog::ExtMgrDialog(vcl::Window *pParent, TheExtensionManager *pManager,
m_pSharedCbx->SetClickHdl( LINK( this, ExtMgrDialog, HandleExtTypeCbx ) );
m_pUserCbx->SetClickHdl( LINK( this, ExtMgrDialog, HandleExtTypeCbx ) );
- m_pBundledCbx->Check( true );
- m_pSharedCbx->Check( true );
- m_pUserCbx->Check( true );
+ m_pBundledCbx->Check();
+ m_pSharedCbx->Check();
+ m_pUserCbx->Check();
m_pProgressBar->Hide();
@@ -1420,7 +1420,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCloseBtn)
else if ( hasActiveEntries() )
disableAllEntries();
else
- EndDialog( 0 );
+ EndDialog();
}
return 1;
@@ -1505,7 +1505,7 @@ bool UpdateRequiredDialog::Close()
else if ( hasActiveEntries() )
disableAllEntries();
else
- EndDialog( 0 );
+ EndDialog();
}
return false;
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 8178fc0ab9b4..7a6e2e319208 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -1319,7 +1319,7 @@ IMPL_LINK_NOARG(UpdateDialog, okHandler)
IMPL_LINK_NOARG(UpdateDialog, closeHandler) {
m_thread->stop();
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
index 0c8d665842a3..849942b0006a 100644
--- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
@@ -326,7 +326,7 @@ void UpdateInstallDialog::setError(OUString const & exceptionMessage)
IMPL_LINK_NOARG(UpdateInstallDialog, cancelHandler)
{
m_thread->stop();
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
@@ -352,7 +352,7 @@ void UpdateInstallDialog::Thread::downloadExtensions()
m_sDownloadFolder = destFolder;
try
{
- dp_misc::create_folder(0, destFolder, m_updateCmdEnv.get(), true );
+ dp_misc::create_folder(0, destFolder, m_updateCmdEnv.get() );
} catch (const cssu::Exception & e)
{
throw cssu::Exception(e.Message + " No extensions will be installed.", 0);
diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx
index cc1621aebc8b..2118c57a415c 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -249,7 +249,7 @@ IMPL_LINK_NOARG(LicenseDialogImpl, AcceptHdl)
IMPL_LINK_NOARG(LicenseDialogImpl, CancelHdl)
{
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx
index d19337f856dc..83db37919f6f 100644
--- a/desktop/source/deployment/manager/dp_activepackages.cxx
+++ b/desktop/source/deployment/manager/dp_activepackages.cxx
@@ -211,7 +211,7 @@ void ActivePackages::erase(
OUString const & id, OUString const & fileName)
{
#if HAVE_FEATURE_EXTENSIONS
- m_map.erase(newKey(id), true) || m_map.erase(oldKey(fileName), true);
+ m_map.erase(newKey(id)) || m_map.erase(oldKey(fileName));
#else
(void) id;
(void) fileName;
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index d75cb3706d88..007d8e5a7287 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -160,7 +160,7 @@ void PackageManagerImpl::initActivationLayer(
m_activePackages_expanded = expandUnoRcUrl( m_activePackages );
m_registrationData_expanded = expandUnoRcUrl(m_registrationData);
if (!m_readOnly)
- create_folder( 0, m_activePackages_expanded, xCmdEnv, true);
+ create_folder( 0, m_activePackages_expanded, xCmdEnv);
OUString dbName;
if (m_context == "user")
@@ -168,7 +168,7 @@ void PackageManagerImpl::initActivationLayer(
else
{
// Create the extension data base in the user installation
- create_folder( 0, m_registrationData_expanded, xCmdEnv, true);
+ create_folder( 0, m_registrationData_expanded, xCmdEnv);
dbName = m_registrationData_expanded + "/extensions.pmap";
}
// The data base can always be written because it is always in the user installation
@@ -953,7 +953,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
ActivePackages::Data val;
if (m_activePackagesDB->get( &val, id, fileName ))
{
- return getDeployedPackage_( id, val, xCmdEnv, false );
+ return getDeployedPackage_( id, val, xCmdEnv );
}
throw lang::IllegalArgumentException(
getResourceString(RID_STR_NO_SUCH_PACKAGE) + id,
diff --git a/desktop/source/deployment/registry/executable/dp_executable.cxx b/desktop/source/deployment/registry/executable/dp_executable.cxx
index cdc61649a374..9be5d9c53bfc 100644
--- a/desktop/source/deployment/registry/executable/dp_executable.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executable.cxx
@@ -284,7 +284,7 @@ bool BackendImpl::ExecutablePackageImpl::isUrlTargetInExtension()
if (osl::File::E_None == osl::File::getAbsoluteFileURL(
OUString(), dp_misc::expandUnoRcUrl(m_url), sFile))
{
- if (sFile.match(sExtensionDir, 0))
+ if (sFile.match(sExtensionDir))
bSuccess = true;
}
}
diff --git a/sdext/source/minimizer/graphiccollector.cxx b/sdext/source/minimizer/graphiccollector.cxx
index 2e7f22758db3..e341371d3fc6 100644
--- a/sdext/source/minimizer/graphiccollector.cxx
+++ b/sdext/source/minimizer/graphiccollector.cxx
@@ -64,7 +64,7 @@ void ImpAddEntity( std::vector< GraphicCollector::GraphicEntity >& rGraphicEntit
const OUString aGraphicURL( rUser.maGraphicURL );
const OUString sPackageURL( "vnd.sun.star.GraphicObject:" );
- if ( rGraphicSettings.mbEmbedLinkedGraphics || (aGraphicURL.isEmpty() || aGraphicURL.match( sPackageURL, 0 ) ) )
+ if ( rGraphicSettings.mbEmbedLinkedGraphics || (aGraphicURL.isEmpty() || aGraphicURL.match( sPackageURL ) ) )
{
std::vector< GraphicCollector::GraphicEntity >::iterator aIter( rGraphicEntities.begin() );
while( aIter != rGraphicEntities.end() )
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx
index 8a125de75c92..84987e6cace5 100644
--- a/sdext/source/minimizer/informationdialog.cxx
+++ b/sdext/source/minimizer/informationdialog.cxx
@@ -202,7 +202,7 @@ static OUString ImpValueOfInMB( const sal_Int64& rVal )
fVal /= ( 1 << 20 );
fVal += 0.05;
OUStringBuffer aVal( OUString::number( fVal ) );
- sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.', 0 ) );
+ sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) );
if ( nX > 0 )
aVal.setLength( nX + 2 );
return aVal.makeStringAndClear();
@@ -274,7 +274,7 @@ void InformationDialog::InitDialog()
aPresentationURL.Complete = sFileProtocol.concat( aURL.Name );
aTitle = xURLTransformer->getPresentation( aPresentationURL, sal_False );
- if ( aTitle.match( sFileProtocol, 0 ) )
+ if ( aTitle.match( sFileProtocol ) )
aTitle = aTitle.replaceAt( 0, sFileProtocol.getLength(), OUString() );
}
@@ -284,15 +284,15 @@ void InformationDialog::InitDialog()
const OUString aTitlePlaceholder( !aTitle.isEmpty() ? OUString("%TITLE" )
: OUString("'%TITLE'") );
- sal_Int32 i = aInfoString.indexOf( aOldSizePlaceholder, 0 );
+ sal_Int32 i = aInfoString.indexOf( aOldSizePlaceholder );
if ( i >= 0 )
aInfoString = aInfoString.replaceAt( i, aOldSizePlaceholder.getLength(), ImpValueOfInMB( nSource ) );
- sal_Int32 j = aInfoString.indexOf( aNewSizePlaceholder, 0 );
+ sal_Int32 j = aInfoString.indexOf( aNewSizePlaceholder );
if ( j >= 0 )
aInfoString = aInfoString.replaceAt( j, aNewSizePlaceholder.getLength(), ImpValueOfInMB( nDest ) );
- sal_Int32 k = aInfoString.indexOf( aTitlePlaceholder, 0 );
+ sal_Int32 k = aInfoString.indexOf( aTitlePlaceholder );
if ( k >= 0 )
aInfoString = aInfoString.replaceAt( k, aTitlePlaceholder.getLength(), aTitle );
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx
index e8d3eb09bb21..087f6d48360f 100644
--- a/sdext/source/minimizer/optimizerdialogcontrols.cxx
+++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx
@@ -590,7 +590,7 @@ static OUString ImpValueOfInMB( const sal_Int64& rVal, sal_Unicode nSeparator =
fVal /= ( 1 << 20 );
fVal += 0.05;
OUStringBuffer aVal( OUString::number( fVal ) );
- sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.', 0 ) );
+ sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) );
if ( nX >= 0 )
{
aVal.setLength( nX + 2 );
@@ -734,7 +734,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
{
OUString aStr( getString( STR_DELETE_SLIDES ) );
OUString aPlaceholder( "%SLIDES" );
- sal_Int32 i = aStr.indexOf( aPlaceholder, 0 );
+ sal_Int32 i = aStr.indexOf( aPlaceholder );
if ( i >= 0 )
aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nDeletedSlides ) );
aSummaryStrings.push_back( aStr );
@@ -754,15 +754,15 @@ void OptimizerDialog::UpdateControlStatesPage4()
OUString aImagePlaceholder( "%IMAGES" );
OUString aQualityPlaceholder( "%QUALITY" );
OUString aResolutionPlaceholder( "%RESOLUTION" );
- sal_Int32 i = aStr.indexOf( aImagePlaceholder, 0 );
+ sal_Int32 i = aStr.indexOf( aImagePlaceholder );
if ( i >= 0 )
aStr = aStr.replaceAt( i, aImagePlaceholder.getLength(), OUString::number( nGraphics ) );
- sal_Int32 j = aStr.indexOf( aQualityPlaceholder, 0 );
+ sal_Int32 j = aStr.indexOf( aQualityPlaceholder );
if ( j >= 0 )
aStr = aStr.replaceAt( j, aQualityPlaceholder.getLength(), OUString::number( nJPEGQuality ) );
- sal_Int32 k = aStr.indexOf( aResolutionPlaceholder, 0 );
+ sal_Int32 k = aStr.indexOf( aResolutionPlaceholder );
if ( k >= 0 )
aStr = aStr.replaceAt( k, aResolutionPlaceholder.getLength(), OUString::number( nImageResolution ) );
@@ -789,7 +789,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
{
OUString aStr( getString( STR_CREATE_REPLACEMENT ) );
OUString aPlaceholder( "%OLE" );
- sal_Int32 i = aStr.indexOf( aPlaceholder, 0 );
+ sal_Int32 i = aStr.indexOf( aPlaceholder );
if ( i >= 0 )
aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nOLEReplacements ) );
aSummaryStrings.push_back( aStr );
diff --git a/slideshow/source/engine/shapes/drawshapesubsetting.cxx b/slideshow/source/engine/shapes/drawshapesubsetting.cxx
index 1f4c7bc8b168..183eaadf89a8 100644
--- a/slideshow/source/engine/shapes/drawshapesubsetting.cxx
+++ b/slideshow/source/engine/shapes/drawshapesubsetting.cxx
@@ -74,7 +74,7 @@ namespace slideshow
MetaCommentAction* pAct = static_cast<MetaCommentAction*>(pCurrAct);
// skip comment if not a special XTEXT... comment
- if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT"), 0 ) )
+ if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT") ) )
{
// fill classification vector with NOOPs,
// then insert corresponding classes at
diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx
index 3422daadfc37..83fce3d442eb 100644
--- a/slideshow/source/engine/shapes/gdimtftools.cxx
+++ b/slideshow/source/engine/shapes/gdimtftools.cxx
@@ -447,7 +447,7 @@ bool getRectanglesFromScrollMtf( ::basegfx::B2DRectangle& o_rScrollRect,
MetaCommentAction * pAct =
static_cast<MetaCommentAction *>(pCurrAct);
// skip comment if not a special XTEXT... comment
- if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT"), 0 ) )
+ if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT") ) )
{
if (pAct->GetComment().equalsIgnoreAsciiCase("XTEXT_SCROLLRECT"))
{
diff --git a/slideshow/source/engine/slide/layer.cxx b/slideshow/source/engine/slide/layer.cxx
index 80fbf94c0793..7bda7c2369d1 100644
--- a/slideshow/source/engine/slide/layer.cxx
+++ b/slideshow/source/engine/slide/layer.cxx
@@ -242,7 +242,7 @@ namespace slideshow
// the calculated update area
::basegfx::B2DPolyPolygon aClip( maUpdateAreas.solveCrossovers() );
aClip = ::basegfx::tools::stripNeutralPolygons(aClip);
- aClip = ::basegfx::tools::stripDispensablePolygons(aClip, false);
+ aClip = ::basegfx::tools::stripDispensablePolygons(aClip);
// actually, if there happen to be shapes with zero
// update area in the maUpdateAreas vector, the
diff --git a/slideshow/source/engine/slideview.cxx b/slideshow/source/engine/slideview.cxx
index c73ff64d3598..11f156b294d5 100644
--- a/slideshow/source/engine/slideview.cxx
+++ b/slideshow/source/engine/slideview.cxx
@@ -147,7 +147,7 @@ basegfx::B2DPolyPolygon prepareClip( const basegfx::B2DPolyPolygon& rClip )
aClip = basegfx::tools::correctOrientations(aClip);
aClip = basegfx::tools::solveCrossovers(aClip);
aClip = basegfx::tools::stripNeutralPolygons(aClip);
- aClip = basegfx::tools::stripDispensablePolygons(aClip, false);
+ aClip = basegfx::tools::stripDispensablePolygons(aClip);
return aClip;
}
@@ -1136,7 +1136,7 @@ void SlideView::updateClip()
mpCanvas,
maUserSize ));
- pruneLayers( false );
+ pruneLayers();
}
void SlideView::pruneLayers( bool bWithViewLayerUpdate ) const
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index fcd71c4c3214..c8ad785b7c68 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -299,7 +299,7 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){
const SmCaretPos pos = position->CaretPos;
//Find top most of line that holds position
- SmNode* pLine = FindTopMostNodeInLine(pos.pSelectedNode, false);
+ SmNode* pLine = FindTopMostNodeInLine(pos.pSelectedNode);
//Find line parent and line index in parent
SmStructureNode* pLineParent = pLine->GetParent();
@@ -501,7 +501,7 @@ void SmCursor::InsertSubSup(SmSubSup eSubSup) {
OSL_ENSURE(pSNode != NULL, "There must be a selected node when HasSelection is true!");
pLine = FindTopMostNodeInLine(pSNode, true);
} else
- pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode, false);
+ pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode);
//Find Parent and offset in parent
SmStructureNode *pLineParent = pLine->GetParent();
@@ -602,7 +602,7 @@ bool SmCursor::InsertLimit(SmSubSup eSubSup, bool bMoveCaret) {
pSubject = static_cast<SmOperNode*>(position->CaretPos.pSelectedNode);
else {
//If not, check if parent of the current line is a SmOperNode
- SmNode *pLineNode = FindTopMostNodeInLine(position->CaretPos.pSelectedNode, false);
+ SmNode *pLineNode = FindTopMostNodeInLine(position->CaretPos.pSelectedNode);
if(pLineNode->GetParent() && pLineNode->GetParent()->GetType() == NOPER)
pSubject = static_cast<SmOperNode*>(pLineNode->GetParent());
}
@@ -672,7 +672,7 @@ void SmCursor::InsertBrackets(SmBracketType eBracketType) {
OSL_ENSURE(pSNode != NULL, "There must be a selected node if HasSelection()");
pLine = FindTopMostNodeInLine(pSNode, true);
} else
- pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode, false);
+ pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode);
//Find parent and offset in parent
SmStructureNode *pLineParent = pLine->GetParent();
@@ -809,7 +809,7 @@ bool SmCursor::InsertRow() {
OSL_ENSURE(pSNode != NULL, "There must be a selected node if HasSelection()");
pLine = FindTopMostNodeInLine(pSNode, true);
} else
- pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode, false);
+ pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode);
//Find parent and offset in parent
SmStructureNode *pLineParent = pLine->GetParent();
@@ -933,7 +933,7 @@ void SmCursor::InsertFraction() {
OSL_ENSURE(pSNode != NULL, "There must be a selected node when HasSelection is true!");
pLine = FindTopMostNodeInLine(pSNode, true);
} else
- pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode, false);
+ pLine = FindTopMostNodeInLine(position->CaretPos.pSelectedNode);
//Find Parent and offset in parent
SmStructureNode *pLineParent = pLine->GetParent();
@@ -1144,14 +1144,14 @@ void SmCursor::InsertCommand(sal_uInt16 nCommand) {
InsertRow();
break;
case RID_FROMX:
- InsertLimit(CSUB, true);
+ InsertLimit(CSUB);
break;
case RID_TOX:
- InsertLimit(CSUP, true);
+ InsertLimit(CSUP);
break;
case RID_FROMXTOY:
- if(InsertLimit(CSUB, true))
- InsertLimit(CSUP, true);
+ if(InsertLimit(CSUB))
+ InsertLimit(CSUP);
break;
default:
InsertCommandText(SM_RESSTR(nCommand));
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 70e7f295bd90..b0503f5f046b 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -608,13 +608,13 @@ void SmFontTypeDialog::WriteTo(SmFormat &rFormat) const
pp->GetConfig()->GetFontPickList(FNT_SANS) = *m_pSansFont;
pp->GetConfig()->GetFontPickList(FNT_FIXED) = *m_pFixedFont;
- rFormat.SetFont( FNT_VARIABLE, m_pVariableFont->Get(0) );
- rFormat.SetFont( FNT_FUNCTION, m_pFunctionFont->Get(0) );
- rFormat.SetFont( FNT_NUMBER, m_pNumberFont->Get(0) );
- rFormat.SetFont( FNT_TEXT, m_pTextFont->Get(0) );
- rFormat.SetFont( FNT_SERIF, m_pSerifFont->Get(0) );
- rFormat.SetFont( FNT_SANS, m_pSansFont->Get(0) );
- rFormat.SetFont( FNT_FIXED, m_pFixedFont->Get(0) );
+ rFormat.SetFont( FNT_VARIABLE, m_pVariableFont->Get() );
+ rFormat.SetFont( FNT_FUNCTION, m_pFunctionFont->Get() );
+ rFormat.SetFont( FNT_NUMBER, m_pNumberFont->Get() );
+ rFormat.SetFont( FNT_TEXT, m_pTextFont->Get() );
+ rFormat.SetFont( FNT_SERIF, m_pSerifFont->Get() );
+ rFormat.SetFont( FNT_SANS, m_pSansFont->Get() );
+ rFormat.SetFont( FNT_FIXED, m_pFixedFont->Get() );
rFormat.RequestApplyChanges();
}
@@ -876,7 +876,7 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory)
m_pMetricField4->Enable( bChecked );
}
- m_pMenuButton->GetPopupMenu()->CheckItem(nCategory + 1, true);
+ m_pMenuButton->GetPopupMenu()->CheckItem(nCategory + 1);
m_pFrame->set_label(Categories[nCategory]->GetName());
nActiveCategory = nCategory;
@@ -1069,21 +1069,21 @@ void SmAlignDialog::ReadFrom(const SmFormat &rFormat)
switch (rFormat.GetHorAlign())
{
case AlignLeft:
- m_pLeft->Check(true);
+ m_pLeft->Check();
m_pCenter->Check(false);
m_pRight->Check(false);
break;
case AlignCenter:
m_pLeft->Check(false);
- m_pCenter->Check(true);
+ m_pCenter->Check();
m_pRight->Check(false);
break;
case AlignRight:
m_pLeft->Check(false);
m_pCenter->Check(false);
- m_pRight->Check(true);
+ m_pRight->Check();
break;
}
}
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index eb544ad8cdc6..53a2b87a99de 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -551,8 +551,8 @@ void SmEditWindow::CreateEditView()
pScrollBox = VclPtr<ScrollBarBox>::Create(this);
pVScrollBar->SetScrollHdl(LINK(this, SmEditWindow, ScrollHdl));
pHScrollBar->SetScrollHdl(LINK(this, SmEditWindow, ScrollHdl));
- pVScrollBar->EnableDrag( true );
- pHScrollBar->EnableDrag( true );
+ pVScrollBar->EnableDrag();
+ pHScrollBar->EnableDrag();
pEditView->SetOutputArea(AdjustScrollBars());
@@ -560,7 +560,7 @@ void SmEditWindow::CreateEditView()
pEditView->SetSelection(eSelection);
Update();
- pEditView->ShowCursor(true, true);
+ pEditView->ShowCursor(true);
pEditEngine->SetStatusEventHdl( LINK(this, SmEditWindow, EditStatusHdl) );
SetPointer(pEditView->GetPointer());
@@ -700,7 +700,7 @@ void SmEditWindow::GetFocus()
// Note: will implicitly send the AccessibleStateType::FOCUSED event
::accessibility::AccessibleTextHelper *pHelper = mxAccessible->GetTextHelper();
if (pHelper)
- pHelper->SetFocus(true);
+ pHelper->SetFocus();
}
if (!pEditView)
@@ -711,7 +711,7 @@ void SmEditWindow::GetFocus()
//Let SmViewShell know we got focus
if(GetView() && IsInlineEditEnabled())
- GetView()->SetInsertIntoEditWindow(true);
+ GetView()->SetInsertIntoEditWindow();
}
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 46c9fddd7c41..301a637927dd 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -574,7 +574,7 @@ SmSetSelectionVisitor::SmSetSelectionVisitor( SmCaretPos startPos, SmCaretPos en
//If we started a selection in this line and it haven't ended, we do that now!
if(IsSelecting) {
IsSelecting = false;
- SetSelectedOnAll(it.Current(), true);
+ SetSelectedOnAll(it.Current());
//Set StartPos and EndPos to invalid positions, this ensures that an unused
//start or end (because we forced end above), doesn't start a new selection.
StartPos = EndPos = SmCaretPos();
@@ -629,9 +629,9 @@ void SmSetSelectionVisitor::DefaultVisit( SmNode* pNode ) {
if( pNode->GetType() != NBRACEBODY ||
!pNode->GetParent() ||
pNode->GetParent()->GetType() != NBRACE )
- SetSelectedOnAll( pNode, true );
+ SetSelectedOnAll( pNode );
else
- SetSelectedOnAll( pNode->GetParent(), true );
+ SetSelectedOnAll( pNode->GetParent() );
/* If the equation is: sqrt{2 + 4} + 5
* And the selection is: sqrt{2 + [4} +] 5
* Where [ denotes StartPos and ] denotes EndPos
@@ -689,7 +689,7 @@ void SmSetSelectionVisitor::Visit( SmTextNode* pNode ) {
i2 = EndPos.Index;
long start, end;
- pNode->SetSelected( true );
+ pNode->SetSelected();
if( i1 != -1 && i2 != -1 ) {
start = i1 < i2 ? i1 : i2; //MIN
end = i1 > i2 ? i1 : i2; //MAX
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 8e20fc2d8050..e03966e9bbb2 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -728,7 +728,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId)
OString sOption = OUStringToOString(
*i, osl_getThreadTextEncoding());
- if (!sOption.matchIgnoreAsciiCase(sJavaOption, 0))
+ if (!sOption.matchIgnoreAsciiCase(sJavaOption))
arPropStrings[index]= OString("-D") + sOption;
else
arPropStrings[index] = sOption;
diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx
index ae1c59a3a970..3d075e7cdbdc 100644
--- a/stoc/source/simpleregistry/simpleregistry.cxx
+++ b/stoc/source/simpleregistry/simpleregistry.cxx
@@ -1080,7 +1080,7 @@ void SimpleRegistry::mergeKey(
RegistryKey root;
RegError err = registry_.openRootKey(root);
if (err == RegError::NO_ERROR) {
- err = registry_.mergeKey(root, aKeyName, aUrl, false, false);
+ err = registry_.mergeKey(root, aKeyName, aUrl, false);
}
switch (err) {
case RegError::NO_ERROR:
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index f343a7d7b378..037dc8578fa6 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -801,7 +801,7 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina
aRet <<= toHyper( rVal, SAL_INT64_MIN, SAL_INT64_MAX );
break;
case TypeClass_UNSIGNED_HYPER:
- aRet <<= (sal_uInt64)( toHyper( rVal, 0, SAL_UINT64_MAX ) );
+ aRet <<= (sal_uInt64)( toHyper( rVal, 0 ) );
break;
// --- to FLOAT, DOUBLE ---------------------------------------------------------------------
diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx
index 7100535b913c..711c158e2f11 100644
--- a/svgio/source/svgreader/svgclippathnode.cxx
+++ b/svgio/source/svgreader/svgclippathnode.cxx
@@ -80,11 +80,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setClipPathUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setClipPathUnits(objectBoundingBox);
}
diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx
index c9ab440d3db9..6357650985b8 100644
--- a/svgio/source/svgreader/svggradientnode.cxx
+++ b/svgio/source/svgreader/svggradientnode.cxx
@@ -186,11 +186,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setGradientUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setGradientUnits(objectBoundingBox);
}
diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx
index cabe6d0e6e0e..d2868478389c 100644
--- a/svgio/source/svgreader/svgmarkernode.cxx
+++ b/svgio/source/svgreader/svgmarkernode.cxx
@@ -110,7 +110,7 @@ namespace svgio
{
setMarkerUnits(strokeWidth);
}
- else if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ else if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setMarkerUnits(userSpaceOnUse);
}
@@ -151,7 +151,7 @@ namespace svgio
{
if(aContent.startsWith("auto"))
{
- setOrientAuto(true);
+ setOrientAuto();
}
else
{
diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx
index 6aed68a960c6..3c0f832d36da 100644
--- a/svgio/source/svgreader/svgmasknode.cxx
+++ b/svgio/source/svgreader/svgmasknode.cxx
@@ -132,11 +132,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setMaskUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setMaskUnits(objectBoundingBox);
}
@@ -147,11 +147,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setMaskContentUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setMaskContentUnits(objectBoundingBox);
}
diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx
index 7df26f609204..5d57e3486ec1 100644
--- a/svgio/source/svgreader/svgpatternnode.cxx
+++ b/svgio/source/svgreader/svgpatternnode.cxx
@@ -146,11 +146,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setPatternUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setPatternUnits(objectBoundingBox);
}
@@ -161,11 +161,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- if(aContent.match(commonStrings::aStrUserSpaceOnUse, 0))
+ if(aContent.match(commonStrings::aStrUserSpaceOnUse))
{
setPatternContentUnits(userSpaceOnUse);
}
- else if(aContent.match(commonStrings::aStrObjectBoundingBox, 0))
+ else if(aContent.match(commonStrings::aStrObjectBoundingBox))
{
setPatternContentUnits(objectBoundingBox);
}
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 14543b6ec21b..704f2f67111c 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -136,7 +136,7 @@ bool FSStorage::MakeFolderNoUI( const OUString& rFolder )
uno::Reference< ucb::XCommandEnvironment >(),
comphelper::getProcessComponentContext(),
aParent ) )
- return ::utl::UCBContentHelper::MakeFolder( aParent, aTitle, aResultContent, false );
+ return ::utl::UCBContentHelper::MakeFolder( aParent, aTitle, aResultContent );
return false;
}