loplugin: defaultparams

Change-Id: I50ba6a836473961d952ed88e56532501469c5368
This commit is contained in:
Noel Grandin 2015-08-11 08:42:49 +02:00
parent 3553a5d3a8
commit 286dfc2a72
16 changed files with 24 additions and 24 deletions

View file

@ -96,7 +96,7 @@ void VCLXContainer::removeVclContainerListener( const ::com::sun::star::uno::Ref
for ( sal_uInt16 n = 0; n < nChildren; n++ )
{
vcl::Window* pChild = pWindow->GetChild( n );
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xWP = pChild->GetComponentInterface( true );
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xWP = pChild->GetComponentInterface();
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > xW( xWP, ::com::sun::star::uno::UNO_QUERY );
pChildRefs[n] = xW;
}

View file

@ -1275,7 +1275,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
if ( !pNewComp )
{
// Default-Interface
xRef = pNewWindow->GetComponentInterface( true );
xRef = pNewWindow->GetComponentInterface();
}
else
{
@ -1855,7 +1855,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
break;
}
if (pFocus != 0)
xNext = pFocus->GetComponentInterface(true);
xNext = pFocus->GetComponentInterface();
css::awt::FocusEvent aAwtEvent(
static_cast< css::awt::XWindow * >(pWindow->GetWindowPeer()),
static_cast<sal_Int16>(pWindow->GetGetFocusFlags()),

View file

@ -617,7 +617,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
if ( pNextC )
pNext = pNextC;
pNext->GetComponentInterface( true );
pNext->GetComponentInterface();
aEvent.NextFocus = static_cast<cppu::OWeakObject*>(pNext->GetWindowPeer());
}
mpImpl->getFocusListeners().focusLost( aEvent );
@ -1059,7 +1059,7 @@ void VCLXWindow::addWindowListener( const ::com::sun::star::uno::Reference< ::co
// #100119# Get all resize events, even if height or width 0, or invisible
if ( GetWindow() )
GetWindow()->EnableAllResize( true );
GetWindow()->EnableAllResize();
}
void VCLXWindow::removeWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowListener >& rxListener ) throw(::com::sun::star::uno::RuntimeException, std::exception)
@ -2338,7 +2338,7 @@ void VCLXWindow::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno:
pWindow->EnableNativeWidget(false);
pWindow->PaintToDevice( pDev, aP, aSz );
if( bOldNW )
pWindow->EnableNativeWidget(true);
pWindow->EnableNativeWidget();
}
}
}

View file

@ -2602,7 +2602,7 @@ sal_uInt16 VCLXMultiPage::insertTab( TabPage* pPage, OUString& sTitle )
{
TabControl *pTabControl = getTabControl();
sal_uInt16 id = sal::static_int_cast< sal_uInt16 >( mTabId++ );
pTabControl->InsertPage( id, sTitle, TAB_APPEND );
pTabControl->InsertPage( id, sTitle );
pTabControl->SetTabPage( id, pPage );
return id;
}

View file

@ -189,7 +189,7 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( bool bAcceptExist
}
try
{
xMe->createPeer( NULL, pParentWindow->GetComponentInterface( true ) );
xMe->createPeer( NULL, pParentWindow->GetComponentInterface() );
}
catch( const Exception& )
{

View file

@ -189,7 +189,7 @@ Polygon VCLUnoHelper::CreatePolygon( const ::com::sun::star::uno::Sequence< sal_
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer> VCLUnoHelper::CreateControlContainer( vcl::Window* pWindow )
{
UnoControlContainer* pContainer = new UnoControlContainer( pWindow->GetComponentInterface( true ) );
UnoControlContainer* pContainer = new UnoControlContainer( pWindow->GetComponentInterface() );
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > x = pContainer;
UnoControlModel* pContainerModel = new UnoControlContainerModel( ::comphelper::getProcessComponentContext() );

View file

@ -4961,7 +4961,7 @@ OUString INetURLObject::GetFull() const
OUString INetURLObject::GetPath() const
{
INetURLObject aTemp(*this);
aTemp.removeSegment(LAST_SEGMENT, true);
aTemp.removeSegment(LAST_SEGMENT);
aTemp.removeFinalSlash();
return aTemp.PathToFileName();
}
@ -4981,7 +4981,7 @@ void INetURLObject::SetName(OUString const & rTheName,
rtl_TextEncoding eCharset)
{
INetURLObject aTemp(*this);
if (aTemp.removeSegment(LAST_SEGMENT, true)
if (aTemp.removeSegment(LAST_SEGMENT)
&& aTemp.insertName(rTheName, false, LAST_SEGMENT, true, eMechanism,
eCharset))
*this = aTemp;

View file

@ -222,7 +222,7 @@ void ImplPolygon::ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pI
{
// Append at the back
nPos = mnPoints;
ImplSetSize( nNewSize, true );
ImplSetSize( nNewSize );
if( pInitPoly )
{
@ -1907,7 +1907,7 @@ Polygon::Polygon(const basegfx::B2DPolygon& rPolygon)
if(nArrayInsert != nMaxTargetCount)
{
mpImplPolygon->ImplSetSize(static_cast< sal_uInt16 >(nArrayInsert), true);
mpImplPolygon->ImplSetSize(static_cast< sal_uInt16 >(nArrayInsert));
}
}
}

View file

@ -1353,7 +1353,7 @@ int INetMIMEMessageStream::PutMsgLine(const sal_Char* pData, sal_uIntPtr nSize)
// Encapsulated message.
INetMIMEMessage* pNewMessage = new INetMIMEMessage;
pNewMessage->SetDocumentLB( new SvAsyncLockBytes(new SvMemoryStream(), false));
pMsg->AttachChild( *pNewMessage, true );
pMsg->AttachChild( *pNewMessage );
// Encapsulated message body. Create message parser stream.
pChildStrm = new INetMIMEMessageStream;
@ -1467,7 +1467,7 @@ int INetMIMEMessageStream::PutMsgLine(const sal_Char* pData, sal_uIntPtr nSize)
new SvAsyncLockBytes(
new SvMemoryStream(), false));
pMsg->AttachChild( *pNewMessage, true );
pMsg->AttachChild( *pNewMessage );
// Encapsulated message body. Create message parser stream.
pChildStrm = new INetMIMEMessageStream;

View file

@ -66,7 +66,7 @@ ContentIdentifier_Impl::ContentIdentifier_Impl(const OUString& rURL )
// The content provider scheme is the part before the first ':'
// within the content id.
sal_Int32 nPos = rURL.indexOf( ':', 0 );
sal_Int32 nPos = rURL.indexOf( ':' );
if ( nPos != -1 )
{
OUString aScheme( rURL.copy( 0, nPos ) );

View file

@ -607,7 +607,7 @@ void generateMemberDeclaration(std::ostream& o,
i != members.end(); ++i)
{
o << " ";
printType(o, options, manager, i->type, 1, false);
printType(o, options, manager, i->type, 1);
o << " m_" << i->name << ";\n";
}
}
@ -934,7 +934,7 @@ void generateQueryInterface(std::ostream& o,
o << "::cppu::OPropertySetHelper::queryInterface(type));\n";
} else {
o << "::cppu::PropertySetMixin<\n ";
printType(o, options, manager, propertyhelper, 0, false);
printType(o, options, manager, propertyhelper, 0);
o << " >::queryInterface(\n type));\n";
}
}

View file

@ -103,7 +103,7 @@ void printType(
if (i != arguments.begin())
o << ", ";
printType(o, options, manager, *i, 1, false);
printType(o, options, manager, *i, 1);
}
o << " >";
}

View file

@ -765,7 +765,7 @@ void generateClassDefinition(std::ostream& o,
o << " // properties\n";
while (iter != properties.end()) {
o << " protected ";
printType(o, options, manager, iter->type, false, false);
printType(o, options, manager, iter->type, false);
o << " m_" << iter->name << ";\n";
++iter;
}
@ -775,7 +775,7 @@ void generateClassDefinition(std::ostream& o,
o << " // attributes\n";
while (iter != attributes.end()) {
o << " private ";
printType(o, options, manager, iter->type, false, false);
printType(o, options, manager, iter->type, false);
o << " m_" << iter->name << " = ";
printType(o, options, manager, iter->type, false, true);
o <<";\n";

View file

@ -89,7 +89,7 @@ void printType(
if (i != arguments.begin()) {
o << ", ";
}
printType(o, options, manager, *i, true, false);
printType(o, options, manager, *i, true);
}
o << '>';
}

View file

@ -88,7 +88,7 @@ std::vector<OUString> getContents(OUString const & url) {
css::uno::Sequence<OUString> args(1);
args[0] = "Title";
css::uno::Reference<css::sdbc::XResultSet> res(
c.createCursor(args, ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS),
c.createCursor(args),
css::uno::UNO_SET_THROW);
css::uno::Reference<com::sun::star::ucb::XContentAccess> acc(
res, css::uno::UNO_QUERY_THROW);

View file

@ -39,7 +39,7 @@ OTempFileService::OTempFileService(css::uno::Reference< css::uno::XComponentCont
{
mpTempFile = new ::utl::TempFile;
mpTempFile->EnableKillingFile ( true );
mpTempFile->EnableKillingFile();
}
OTempFileService::~OTempFileService ()