Kaydet (Commit) 286dfc2a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin: defaultparams

Change-Id: I50ba6a836473961d952ed88e56532501469c5368
üst 3553a5d3
......@@ -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;
}
......
......@@ -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()),
......
......@@ -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();
}
}
}
......
......@@ -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;
}
......
......@@ -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& )
{
......
......@@ -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() );
......
......@@ -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;
......
......@@ -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));
}
}
}
......
......@@ -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;
......
......@@ -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 ) );
......
......@@ -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";
}
}
......
......@@ -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 << " >";
}
......
......@@ -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";
......
......@@ -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 << '>';
}
......
......@@ -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);
......
......@@ -39,7 +39,7 @@ OTempFileService::OTempFileService(css::uno::Reference< css::uno::XComponentCont
{
mpTempFile = new ::utl::TempFile;
mpTempFile->EnableKillingFile ( true );
mpTempFile->EnableKillingFile();
}
OTempFileService::~OTempFileService ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment