loplugin: defaultparams
Change-Id: I4080aece6fec2778a2a8646ddedd280337303591
This commit is contained in:
@@ -1649,7 +1649,7 @@ void PSWriter::ImplPolyPoly( const tools::PolyPolygon & rPolyPoly, bool bTextOut
|
|||||||
ImplWriteLineColor( PS_SPACE );
|
ImplWriteLineColor( PS_SPACE );
|
||||||
for ( i = 0; i < nPolyCount; i++ )
|
for ( i = 0; i < nPolyCount; i++ )
|
||||||
ImplAddPath( rPolyPoly.GetObject( i ) );
|
ImplAddPath( rPolyPoly.GetObject( i ) );
|
||||||
ImplClosePathDraw( PS_RET );
|
ImplClosePathDraw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1685,7 +1685,7 @@ void PSWriter::ImplPolyLine( const Polygon & rPoly )
|
|||||||
|
|
||||||
// #104645# explicitly close path if polygon is closed
|
// #104645# explicitly close path if polygon is closed
|
||||||
if( rPoly[ 0 ] == rPoly[ nPointCount-1 ] )
|
if( rPoly[ 0 ] == rPoly[ nPointCount-1 ] )
|
||||||
ImplClosePathDraw( PS_RET );
|
ImplClosePathDraw();
|
||||||
else
|
else
|
||||||
ImplPathDraw();
|
ImplPathDraw();
|
||||||
}
|
}
|
||||||
@@ -2438,13 +2438,13 @@ void PSWriter::ImplWriteLineInfo( double fLWidth, double fMLimit,
|
|||||||
if ( eLineCap != eLCap )
|
if ( eLineCap != eLCap )
|
||||||
{
|
{
|
||||||
eLineCap = eLCap;
|
eLineCap = eLCap;
|
||||||
ImplWriteLong( (sal_Int32)eLineCap, PS_SPACE );
|
ImplWriteLong( (sal_Int32)eLineCap );
|
||||||
ImplWriteLine( "lc", PS_SPACE );
|
ImplWriteLine( "lc", PS_SPACE );
|
||||||
}
|
}
|
||||||
if ( eJoinType != eJoin )
|
if ( eJoinType != eJoin )
|
||||||
{
|
{
|
||||||
eJoinType = eJoin;
|
eJoinType = eJoin;
|
||||||
ImplWriteLong( (sal_Int32)eJoinType, PS_SPACE );
|
ImplWriteLong( (sal_Int32)eJoinType );
|
||||||
ImplWriteLine( "lj", PS_SPACE );
|
ImplWriteLine( "lj", PS_SPACE );
|
||||||
}
|
}
|
||||||
if ( eJoinType == SvtGraphicStroke::joinMiter )
|
if ( eJoinType == SvtGraphicStroke::joinMiter )
|
||||||
|
@@ -288,7 +288,7 @@ void CGM::ImplDoClass4()
|
|||||||
{
|
{
|
||||||
aPolygon.SetPoint( pPoints[ i ], i );
|
aPolygon.SetPoint( pPoints[ i ], i );
|
||||||
}
|
}
|
||||||
aPolyPolygon.Insert( aPolygon, POLYPOLY_APPEND );
|
aPolyPolygon.Insert( aPolygon );
|
||||||
nPoints = 0;
|
nPoints = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -614,7 +614,7 @@ void DXF2GDIMetaFile::DrawHatchEntity(const DXFHatchEntity & rE, const DXFTransf
|
|||||||
Polygon aPoly( nSize );
|
Polygon aPoly( nSize );
|
||||||
for ( i = 0; i < nSize; i++ )
|
for ( i = 0; i < nSize; i++ )
|
||||||
aPoly[ i ] = aPtAry[ i ];
|
aPoly[ i ] = aPtAry[ i ];
|
||||||
aPolyPoly.Insert( aPoly, POLYPOLY_APPEND );
|
aPolyPoly.Insert( aPoly );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( aPolyPoly.Count() )
|
if ( aPolyPoly.Count() )
|
||||||
|
@@ -597,7 +597,7 @@ OUString SAL_CALL VBAMacroResolver::resolveVBAMacroToScriptURL( const OUString&
|
|||||||
aMacroName = aMacroName.copy( nDotPos + 1 );
|
aMacroName = aMacroName.copy( nDotPos + 1 );
|
||||||
|
|
||||||
// try to find the macro
|
// try to find the macro
|
||||||
MacroResolvedInfo aInfo = resolveVBAMacro( mpObjShell, aMacroName, false );
|
MacroResolvedInfo aInfo = resolveVBAMacro( mpObjShell, aMacroName );
|
||||||
if( !aInfo.mbFound )
|
if( !aInfo.mbFound )
|
||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
|
|
||||||
|
@@ -305,7 +305,7 @@ ImpPDFTabGeneralPage* ImpPDFTabDialog::getGeneralPage() const
|
|||||||
|
|
||||||
IMPL_LINK_NOARG(ImpPDFTabDialog, CancelHdl)
|
IMPL_LINK_NOARG(ImpPDFTabDialog, CancelHdl)
|
||||||
{
|
{
|
||||||
EndDialog( RET_CANCEL );
|
EndDialog();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1121,12 +1121,12 @@ void ImpPDFTabViewerPage::SetFilterConfigItem( const ImpPDFTabDialog* paParent
|
|||||||
m_pCbTransitionEffects->Enable( mbIsPresentation );
|
m_pCbTransitionEffects->Enable( mbIsPresentation );
|
||||||
if( paParent->mnOpenBookmarkLevels < 0 )
|
if( paParent->mnOpenBookmarkLevels < 0 )
|
||||||
{
|
{
|
||||||
m_pRbAllBookmarkLevels->Check( true );
|
m_pRbAllBookmarkLevels->Check();
|
||||||
m_pNumBookmarkLevels->Enable( false );
|
m_pNumBookmarkLevels->Enable( false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_pRbVisibleBookmarkLevels->Check( true );
|
m_pRbVisibleBookmarkLevels->Check();
|
||||||
m_pNumBookmarkLevels->Enable( true );
|
m_pNumBookmarkLevels->Enable( true );
|
||||||
m_pNumBookmarkLevels->SetValue( paParent->mnOpenBookmarkLevels );
|
m_pNumBookmarkLevels->SetValue( paParent->mnOpenBookmarkLevels );
|
||||||
}
|
}
|
||||||
|
@@ -76,7 +76,7 @@ namespace XSLT
|
|||||||
{
|
{
|
||||||
Sequence<sal_Int8> oleData;
|
Sequence<sal_Int8> oleData;
|
||||||
::sax::Converter::decodeBase64(oleData, OStringToOUString(
|
::sax::Converter::decodeBase64(oleData, OStringToOUString(
|
||||||
content, RTL_TEXTENCODING_UTF8, OSTRING_TO_OUSTRING_CVTFLAGS));
|
content, RTL_TEXTENCODING_UTF8));
|
||||||
m_rootStream = createTempFile();
|
m_rootStream = createTempFile();
|
||||||
Reference<XOutputStream> xOutput = m_rootStream->getOutputStream();
|
Reference<XOutputStream> xOutput = m_rootStream->getOutputStream();
|
||||||
xOutput->writeBytes(oleData);
|
xOutput->writeBytes(oleData);
|
||||||
|
@@ -1939,7 +1939,7 @@ void SAL_CALL ODatabaseForm::reset() throw( RuntimeException, std::exception )
|
|||||||
m_pThread->create();
|
m_pThread->create();
|
||||||
}
|
}
|
||||||
EventObject aEvt;
|
EventObject aEvt;
|
||||||
m_pThread->addEvent(&aEvt, false);
|
m_pThread->addEvent(&aEvt);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -1391,7 +1391,7 @@ namespace frm
|
|||||||
{
|
{
|
||||||
// the indexes where the current string appears in our string items
|
// the indexes where the current string appears in our string items
|
||||||
Sequence< sal_Int16 > aThisEntryIndexes;
|
Sequence< sal_Int16 > aThisEntryIndexes;
|
||||||
aThisEntryIndexes = findValue( getStringItemList(), *pSelectEntries++, false );
|
aThisEntryIndexes = findValue( getStringItemList(), *pSelectEntries++ );
|
||||||
|
|
||||||
// insert all the indexes of this entry into our set
|
// insert all the indexes of this entry into our set
|
||||||
::std::copy(
|
::std::copy(
|
||||||
@@ -1416,7 +1416,7 @@ namespace frm
|
|||||||
OUString sStringToSelect;
|
OUString sStringToSelect;
|
||||||
OSL_VERIFY( _rExternalValue >>= sStringToSelect );
|
OSL_VERIFY( _rExternalValue >>= sStringToSelect );
|
||||||
|
|
||||||
aSelectIndexes = findValue( getStringItemList(), sStringToSelect, false );
|
aSelectIndexes = findValue( getStringItemList(), sStringToSelect );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -170,7 +170,7 @@ css::uno::Reference<css::xml::dom::XNodeList> Binding::getXNodeList()
|
|||||||
{
|
{
|
||||||
// first make sure we are bound
|
// first make sure we are bound
|
||||||
if( ! maBindingExpression.hasValue() )
|
if( ! maBindingExpression.hasValue() )
|
||||||
bind( false );
|
bind();
|
||||||
|
|
||||||
return maBindingExpression.getXNodeList();
|
return maBindingExpression.getXNodeList();
|
||||||
}
|
}
|
||||||
@@ -309,7 +309,7 @@ EvaluationContext Binding::getEvaluationContext() const
|
|||||||
OSL_ENSURE( getModelImpl() != NULL, "need model impl" );
|
OSL_ENSURE( getModelImpl() != NULL, "need model impl" );
|
||||||
|
|
||||||
// bind (in case we were not bound before)
|
// bind (in case we were not bound before)
|
||||||
bind( false );
|
bind();
|
||||||
return _getMIPEvaluationContexts();
|
return _getMIPEvaluationContexts();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -779,11 +779,11 @@ MIP Binding::getLocalMIP() const
|
|||||||
MIP aMIP;
|
MIP aMIP;
|
||||||
|
|
||||||
if( maReadonly.hasValue() )
|
if( maReadonly.hasValue() )
|
||||||
aMIP.setReadonly( maReadonly.getBool( false ) );
|
aMIP.setReadonly( maReadonly.getBool() );
|
||||||
if( maRelevant.hasValue() )
|
if( maRelevant.hasValue() )
|
||||||
aMIP.setRelevant( maRelevant.getBool( true ) );
|
aMIP.setRelevant( maRelevant.getBool( true ) );
|
||||||
if( maRequired.hasValue() )
|
if( maRequired.hasValue() )
|
||||||
aMIP.setRequired( maRequired.getBool( false ) );
|
aMIP.setRequired( maRequired.getBool() );
|
||||||
if( maConstraint.hasValue() )
|
if( maConstraint.hasValue() )
|
||||||
{
|
{
|
||||||
aMIP.setConstraint( maConstraint.getBool( true ) );
|
aMIP.setConstraint( maConstraint.getBool( true ) );
|
||||||
@@ -1252,7 +1252,7 @@ void Binding::handleEvent( const css::uno::Reference<css::xml::dom::events::XEve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if we're a dynamic binding, we better re-bind, too!
|
// if we're a dynamic binding, we better re-bind, too!
|
||||||
bind( false );
|
bind();
|
||||||
|
|
||||||
// our value was maybe modified
|
// our value was maybe modified
|
||||||
valueModified();
|
valueModified();
|
||||||
|
@@ -157,7 +157,7 @@ namespace xforms
|
|||||||
Reference< XDataType > SAL_CALL ODataTypeRepository::getDataType( const OUString& typeName ) throw (NoSuchElementException, RuntimeException, std::exception)
|
Reference< XDataType > SAL_CALL ODataTypeRepository::getDataType( const OUString& typeName ) throw (NoSuchElementException, RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
::osl::MutexGuard aGuard( m_aMutex );
|
||||||
return implLocate( typeName, false )->second.get();
|
return implLocate( typeName )->second.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1068,11 +1068,11 @@ bool FormulaCompiler::GetToken()
|
|||||||
if ( nWasColRowName )
|
if ( nWasColRowName )
|
||||||
nWasColRowName++;
|
nWasColRowName++;
|
||||||
if ( bAutoCorrect && !pStack )
|
if ( bAutoCorrect && !pStack )
|
||||||
CreateStringFromToken( aCorrectedFormula, mpToken.get(), false );
|
CreateStringFromToken( aCorrectedFormula, mpToken.get() );
|
||||||
mpToken = pArr->Next();
|
mpToken = pArr->Next();
|
||||||
}
|
}
|
||||||
if ( bAutoCorrect && !pStack && mpToken )
|
if ( bAutoCorrect && !pStack && mpToken )
|
||||||
CreateStringFromToken( aCorrectedSymbol, mpToken.get(), false );
|
CreateStringFromToken( aCorrectedSymbol, mpToken.get() );
|
||||||
if( !mpToken )
|
if( !mpToken )
|
||||||
{
|
{
|
||||||
if( pStack )
|
if( pStack )
|
||||||
|
Reference in New Issue
Block a user