clang-tidy modernize-use-emplace in test..vbahelper
Change-Id: Ifbe1dd7c9d5dde33f7419548670434591b1a1d82 Reviewed-on: https://gerrit.libreoffice.org/42258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -33,33 +33,33 @@ OUString collectPushFlags(PushFlags nFlags)
|
|||||||
std::vector<OUString> aStrings;
|
std::vector<OUString> aStrings;
|
||||||
|
|
||||||
if (nFlags & PushFlags::LINECOLOR)
|
if (nFlags & PushFlags::LINECOLOR)
|
||||||
aStrings.push_back("PushLineColor");
|
aStrings.emplace_back("PushLineColor");
|
||||||
if (nFlags & PushFlags::FILLCOLOR)
|
if (nFlags & PushFlags::FILLCOLOR)
|
||||||
aStrings.push_back("PushFillColor");
|
aStrings.emplace_back("PushFillColor");
|
||||||
if (nFlags & PushFlags::FONT)
|
if (nFlags & PushFlags::FONT)
|
||||||
aStrings.push_back("PushFont");
|
aStrings.emplace_back("PushFont");
|
||||||
if (nFlags & PushFlags::TEXTCOLOR)
|
if (nFlags & PushFlags::TEXTCOLOR)
|
||||||
aStrings.push_back("PushTextColor");
|
aStrings.emplace_back("PushTextColor");
|
||||||
if (nFlags & PushFlags::MAPMODE)
|
if (nFlags & PushFlags::MAPMODE)
|
||||||
aStrings.push_back("PushMapMode");
|
aStrings.emplace_back("PushMapMode");
|
||||||
if (nFlags & PushFlags::CLIPREGION)
|
if (nFlags & PushFlags::CLIPREGION)
|
||||||
aStrings.push_back("PushClipRegion");
|
aStrings.emplace_back("PushClipRegion");
|
||||||
if (nFlags & PushFlags::RASTEROP)
|
if (nFlags & PushFlags::RASTEROP)
|
||||||
aStrings.push_back("PushRasterOp");
|
aStrings.emplace_back("PushRasterOp");
|
||||||
if (nFlags & PushFlags::TEXTFILLCOLOR)
|
if (nFlags & PushFlags::TEXTFILLCOLOR)
|
||||||
aStrings.push_back("PushTextFillColor");
|
aStrings.emplace_back("PushTextFillColor");
|
||||||
if (nFlags & PushFlags::TEXTALIGN)
|
if (nFlags & PushFlags::TEXTALIGN)
|
||||||
aStrings.push_back("PushTextAlign");
|
aStrings.emplace_back("PushTextAlign");
|
||||||
if (nFlags & PushFlags::REFPOINT)
|
if (nFlags & PushFlags::REFPOINT)
|
||||||
aStrings.push_back("PushRefPoint");
|
aStrings.emplace_back("PushRefPoint");
|
||||||
if (nFlags & PushFlags::TEXTLINECOLOR)
|
if (nFlags & PushFlags::TEXTLINECOLOR)
|
||||||
aStrings.push_back("PushTextLineColor");
|
aStrings.emplace_back("PushTextLineColor");
|
||||||
if (nFlags & PushFlags::TEXTLAYOUTMODE)
|
if (nFlags & PushFlags::TEXTLAYOUTMODE)
|
||||||
aStrings.push_back("PushTextLayoutMode");
|
aStrings.emplace_back("PushTextLayoutMode");
|
||||||
if (nFlags & PushFlags::TEXTLANGUAGE)
|
if (nFlags & PushFlags::TEXTLANGUAGE)
|
||||||
aStrings.push_back("PushTextLanguage");
|
aStrings.emplace_back("PushTextLanguage");
|
||||||
if (nFlags & PushFlags::OVERLINECOLOR)
|
if (nFlags & PushFlags::OVERLINECOLOR)
|
||||||
aStrings.push_back("PushOverlineColor");
|
aStrings.emplace_back("PushOverlineColor");
|
||||||
|
|
||||||
OUString aString;
|
OUString aString;
|
||||||
|
|
||||||
@@ -78,41 +78,41 @@ OUString convertDrawTextFlagsToString(DrawTextFlags eDrawTextFlags)
|
|||||||
{
|
{
|
||||||
std::vector<OUString> aStrings;
|
std::vector<OUString> aStrings;
|
||||||
if (eDrawTextFlags & DrawTextFlags::Disable)
|
if (eDrawTextFlags & DrawTextFlags::Disable)
|
||||||
aStrings.push_back("Disable");
|
aStrings.emplace_back("Disable");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Mnemonic)
|
if (eDrawTextFlags & DrawTextFlags::Mnemonic)
|
||||||
aStrings.push_back("Mnemonic");
|
aStrings.emplace_back("Mnemonic");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Mono)
|
if (eDrawTextFlags & DrawTextFlags::Mono)
|
||||||
aStrings.push_back("Mono");
|
aStrings.emplace_back("Mono");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Clip)
|
if (eDrawTextFlags & DrawTextFlags::Clip)
|
||||||
aStrings.push_back("Clip");
|
aStrings.emplace_back("Clip");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Left)
|
if (eDrawTextFlags & DrawTextFlags::Left)
|
||||||
aStrings.push_back("Left");
|
aStrings.emplace_back("Left");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Center)
|
if (eDrawTextFlags & DrawTextFlags::Center)
|
||||||
aStrings.push_back("Center");
|
aStrings.emplace_back("Center");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Right)
|
if (eDrawTextFlags & DrawTextFlags::Right)
|
||||||
aStrings.push_back("Right");
|
aStrings.emplace_back("Right");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Top)
|
if (eDrawTextFlags & DrawTextFlags::Top)
|
||||||
aStrings.push_back("Top");
|
aStrings.emplace_back("Top");
|
||||||
if (eDrawTextFlags & DrawTextFlags::VCenter)
|
if (eDrawTextFlags & DrawTextFlags::VCenter)
|
||||||
aStrings.push_back("VCenter");
|
aStrings.emplace_back("VCenter");
|
||||||
if (eDrawTextFlags & DrawTextFlags::Bottom)
|
if (eDrawTextFlags & DrawTextFlags::Bottom)
|
||||||
aStrings.push_back("Bottom");
|
aStrings.emplace_back("Bottom");
|
||||||
if (eDrawTextFlags & DrawTextFlags::EndEllipsis)
|
if (eDrawTextFlags & DrawTextFlags::EndEllipsis)
|
||||||
aStrings.push_back("EndEllipsis");
|
aStrings.emplace_back("EndEllipsis");
|
||||||
if (eDrawTextFlags & DrawTextFlags::PathEllipsis)
|
if (eDrawTextFlags & DrawTextFlags::PathEllipsis)
|
||||||
aStrings.push_back("PathEllipsis");
|
aStrings.emplace_back("PathEllipsis");
|
||||||
if (eDrawTextFlags & DrawTextFlags::MultiLine)
|
if (eDrawTextFlags & DrawTextFlags::MultiLine)
|
||||||
aStrings.push_back("MultiLine");
|
aStrings.emplace_back("MultiLine");
|
||||||
if (eDrawTextFlags & DrawTextFlags::WordBreak)
|
if (eDrawTextFlags & DrawTextFlags::WordBreak)
|
||||||
aStrings.push_back("WordBreak");
|
aStrings.emplace_back("WordBreak");
|
||||||
if (eDrawTextFlags & DrawTextFlags::NewsEllipsis)
|
if (eDrawTextFlags & DrawTextFlags::NewsEllipsis)
|
||||||
aStrings.push_back("NewsEllipsis");
|
aStrings.emplace_back("NewsEllipsis");
|
||||||
if (eDrawTextFlags & DrawTextFlags::WordBreakHyphenation)
|
if (eDrawTextFlags & DrawTextFlags::WordBreakHyphenation)
|
||||||
aStrings.push_back("WordBreakHyphenation");
|
aStrings.emplace_back("WordBreakHyphenation");
|
||||||
if (eDrawTextFlags & DrawTextFlags::CenterEllipsis)
|
if (eDrawTextFlags & DrawTextFlags::CenterEllipsis)
|
||||||
aStrings.push_back("CenterEllipsis");
|
aStrings.emplace_back("CenterEllipsis");
|
||||||
if (eDrawTextFlags & DrawTextFlags::HideMnemonic)
|
if (eDrawTextFlags & DrawTextFlags::HideMnemonic)
|
||||||
aStrings.push_back("HideMnemonic");
|
aStrings.emplace_back("HideMnemonic");
|
||||||
|
|
||||||
OUString aString;
|
OUString aString;
|
||||||
|
|
||||||
|
@@ -171,7 +171,7 @@ namespace toolkit
|
|||||||
o_images.reserve( count );
|
o_images.reserve( count );
|
||||||
for ( size_t i = 0; i < count; ++i )
|
for ( size_t i = 0; i < count; ++i )
|
||||||
{
|
{
|
||||||
o_images.push_back( CachedImage( i_imageURLs[i] ) );
|
o_images.emplace_back( i_imageURLs[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -147,7 +147,7 @@ public:
|
|||||||
Reference< XCloneable > xCloneSource( _rSource.first, UNO_QUERY );
|
Reference< XCloneable > xCloneSource( _rSource.first, UNO_QUERY );
|
||||||
Reference< XControlModel > xClone( xCloneSource->createClone(), UNO_QUERY );
|
Reference< XControlModel > xClone( xCloneSource->createClone(), UNO_QUERY );
|
||||||
// add to target list
|
// add to target list
|
||||||
m_rTargetList.push_back( ControlModelContainerBase::UnoControlModelHolder( xClone, _rSource.second ) );
|
m_rTargetList.emplace_back( xClone, _rSource.second );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -594,7 +594,7 @@ void ControlModelContainerBase::insertByName( const OUString& aName, const Any&
|
|||||||
|
|
||||||
if ( xAllChildren.is() )
|
if ( xAllChildren.is() )
|
||||||
updateUserFormChildren( xAllChildren, aName, Insert, xM );
|
updateUserFormChildren( xAllChildren, aName, Insert, xM );
|
||||||
maModels.push_back( UnoControlModelHolder( xM, aName ) );
|
maModels.emplace_back( xM, aName );
|
||||||
mbGroupsUpToDate = false;
|
mbGroupsUpToDate = false;
|
||||||
startControlListening( xM );
|
startControlListening( xM );
|
||||||
|
|
||||||
|
@@ -483,7 +483,7 @@
|
|||||||
PropSeqArray &rAggProperties = AggregateProperties::get();
|
PropSeqArray &rAggProperties = AggregateProperties::get();
|
||||||
m_nPropertyMapId = rAggProperties.size();
|
m_nPropertyMapId = rAggProperties.size();
|
||||||
rAggProperties.push_back( xPI->getProperties() );
|
rAggProperties.push_back( xPI->getProperties() );
|
||||||
AmbiguousPropertyIds::get().push_back( IntArrayArray::value_type() );
|
AmbiguousPropertyIds::get().emplace_back( );
|
||||||
|
|
||||||
rMap[ m_sServiceSpecifier ] = m_nPropertyMapId;
|
rMap[ m_sServiceSpecifier ] = m_nPropertyMapId;
|
||||||
}
|
}
|
||||||
|
@@ -530,7 +530,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
|
|||||||
// Add properties with dependencies on other properties last
|
// Add properties with dependencies on other properties last
|
||||||
// since they're dependent on properties added later (such as
|
// since they're dependent on properties added later (such as
|
||||||
// VALUE dependency on VALUEMIN/MAX)
|
// VALUE dependency on VALUEMIN/MAX)
|
||||||
aPeerPropertiesToSet.push_back(PropertyValue(pEvents->PropertyName, 0, pEvents->NewValue, PropertyState_DIRECT_VALUE));
|
aPeerPropertiesToSet.emplace_back(pEvents->PropertyName, 0, pEvents->NewValue, PropertyState_DIRECT_VALUE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -600,8 +600,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
|
|||||||
OUString aPropName( OUString::createFromAscii( pLangDepProp->pPropName ));
|
OUString aPropName( OUString::createFromAscii( pLangDepProp->pPropName ));
|
||||||
if ( xPSI.is() && xPSI->hasPropertyByName( aPropName ) )
|
if ( xPSI.is() && xPSI->hasPropertyByName( aPropName ) )
|
||||||
{
|
{
|
||||||
aPeerPropertiesToSet.push_back(
|
aPeerPropertiesToSet.emplace_back( aPropName, 0, xPS->getPropertyValue( aPropName ), PropertyState_DIRECT_VALUE );
|
||||||
PropertyValue( aPropName, 0, xPS->getPropertyValue( aPropName ), PropertyState_DIRECT_VALUE ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,7 +83,7 @@ namespace
|
|||||||
aRetProp = aPropsNames.getPropertiesNames();
|
aRetProp = aPropsNames.getPropertiesNames();
|
||||||
CPPUNIT_ASSERT_EQUAL( true, ( aProps == aRetProp ) );
|
CPPUNIT_ASSERT_EQUAL( true, ( aProps == aRetProp ) );
|
||||||
|
|
||||||
aProps[0].properties.push_back( "DAV:getlastmodified" );
|
aProps[0].properties.emplace_back("DAV:getlastmodified" );
|
||||||
aRetProp = aPropsNames.getPropertiesNames();
|
aRetProp = aPropsNames.getPropertiesNames();
|
||||||
CPPUNIT_ASSERT_EQUAL( false, ( aProps == aRetProp ) );
|
CPPUNIT_ASSERT_EQUAL( false, ( aProps == aRetProp ) );
|
||||||
}
|
}
|
||||||
|
@@ -239,8 +239,7 @@ XResultSet_impl::OneMore()
|
|||||||
{
|
{
|
||||||
osl::MutexGuard aGuard( m_aMutex );
|
osl::MutexGuard aGuard( m_aMutex );
|
||||||
m_aItems.push_back( aRow );
|
m_aItems.push_back( aRow );
|
||||||
m_aIdents.push_back(
|
m_aIdents.emplace_back( );
|
||||||
uno::Reference< ucb::XContentIdentifier >() );
|
|
||||||
m_aUnqPath.push_back( aUnqPath );
|
m_aUnqPath.push_back( aUnqPath );
|
||||||
rowCountChanged();
|
rowCountChanged();
|
||||||
return true;
|
return true;
|
||||||
@@ -254,8 +253,7 @@ XResultSet_impl::OneMore()
|
|||||||
{
|
{
|
||||||
osl::MutexGuard aGuard( m_aMutex );
|
osl::MutexGuard aGuard( m_aMutex );
|
||||||
m_aItems.push_back( aRow );
|
m_aItems.push_back( aRow );
|
||||||
m_aIdents.push_back(
|
m_aIdents.emplace_back( );
|
||||||
uno::Reference< ucb::XContentIdentifier >() );
|
|
||||||
m_aUnqPath.push_back( aUnqPath );
|
m_aUnqPath.push_back( aUnqPath );
|
||||||
rowCountChanged();
|
rowCountChanged();
|
||||||
return true;
|
return true;
|
||||||
@@ -268,8 +266,7 @@ XResultSet_impl::OneMore()
|
|||||||
{
|
{
|
||||||
osl::MutexGuard aGuard( m_aMutex );
|
osl::MutexGuard aGuard( m_aMutex );
|
||||||
m_aItems.push_back( aRow );
|
m_aItems.push_back( aRow );
|
||||||
m_aIdents.push_back(
|
m_aIdents.emplace_back( );
|
||||||
uno::Reference< ucb::XContentIdentifier >() );
|
|
||||||
m_aUnqPath.push_back( aUnqPath );
|
m_aUnqPath.push_back( aUnqPath );
|
||||||
rowCountChanged();
|
rowCountChanged();
|
||||||
return true;
|
return true;
|
||||||
|
@@ -586,7 +586,7 @@ void Content::queryChildren( ContentRefList& rChildren )
|
|||||||
if ( ( nPos == -1 ) || ( nPos == ( aChildURL.getLength() - 1 ) ) )
|
if ( ( nPos == -1 ) || ( nPos == ( aChildURL.getLength() - 1 ) ) )
|
||||||
{
|
{
|
||||||
// No further slashes / only a final slash. It's a child!
|
// No further slashes / only a final slash. It's a child!
|
||||||
rChildren.push_back( ::gio::Content::ContentRef (static_cast< ::gio::Content * >(xChild.get() ) ) );
|
rChildren.emplace_back(static_cast< ::gio::Content * >(xChild.get() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
|
@@ -760,9 +760,8 @@ void HierarchyContent::queryChildren( HierarchyContentRefList& rChildren )
|
|||||||
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
||||||
{
|
{
|
||||||
// No further slashes/ only a final slash. It's a child!
|
// No further slashes/ only a final slash. It's a child!
|
||||||
rChildren.push_back(
|
rChildren.emplace_back(
|
||||||
HierarchyContentRef(
|
static_cast< HierarchyContent * >( xChild.get() ) );
|
||||||
static_cast< HierarchyContent * >( xChild.get() ) ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
|
@@ -2070,9 +2070,8 @@ void Content::queryChildren( ContentRefList& rChildren )
|
|||||||
if ( aChildURL.indexOf( '/', nLen ) == -1 )
|
if ( aChildURL.indexOf( '/', nLen ) == -1 )
|
||||||
{
|
{
|
||||||
// No further slashes. It's a child!
|
// No further slashes. It's a child!
|
||||||
rChildren.push_back(
|
rChildren.emplace_back(
|
||||||
ContentRef(
|
static_cast< Content * >( xChild.get() ) );
|
||||||
static_cast< Content * >( xChild.get() ) ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
|
@@ -743,9 +743,8 @@ void Content::queryChildren( ContentRefList& rChildren )
|
|||||||
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
||||||
{
|
{
|
||||||
// No further slashes / only a final slash. It's a child!
|
// No further slashes / only a final slash. It's a child!
|
||||||
rChildren.push_back(
|
rChildren.emplace_back(
|
||||||
ContentRef(
|
static_cast< Content * >( xChild.get() ) );
|
||||||
static_cast< Content * >( xChild.get() ) ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
|
@@ -315,18 +315,15 @@ void ContentProperties::UCBNamesToHTTPNames(
|
|||||||
|
|
||||||
if ( rProp.Name == "DateModified" )
|
if ( rProp.Name == "DateModified" )
|
||||||
{
|
{
|
||||||
propertyNames.push_back(
|
propertyNames.emplace_back("Last-Modified" );
|
||||||
OUString("Last-Modified") );
|
|
||||||
}
|
}
|
||||||
else if ( rProp.Name == "MediaType" )
|
else if ( rProp.Name == "MediaType" )
|
||||||
{
|
{
|
||||||
propertyNames.push_back(
|
propertyNames.emplace_back("Content-Type" );
|
||||||
OUString("Content-Type") );
|
|
||||||
}
|
}
|
||||||
else if ( rProp.Name == "Size" )
|
else if ( rProp.Name == "Size" )
|
||||||
{
|
{
|
||||||
propertyNames.push_back(
|
propertyNames.emplace_back("Content-Length" );
|
||||||
OUString("Content-Length") );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -1089,10 +1089,9 @@ void DAVResourceAccess::getUserRequestHeaders(
|
|||||||
|
|
||||||
for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
|
for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
|
||||||
{
|
{
|
||||||
rRequestHeaders.push_back(
|
rRequestHeaders.emplace_back(
|
||||||
DAVRequestHeader(
|
|
||||||
aRequestHeaders[ n ].First,
|
aRequestHeaders[ n ].First,
|
||||||
aRequestHeaders[ n ].Second ) );
|
aRequestHeaders[ n ].Second );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1109,8 +1108,7 @@ void DAVResourceAccess::getUserRequestHeaders(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rRequestHeaders.push_back(
|
rRequestHeaders.emplace_back( "User-Agent", "LibreOffice" );
|
||||||
DAVRequestHeader( "User-Agent", "LibreOffice" ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function member implements the control on cyclical redirections
|
// This function member implements the control on cyclical redirections
|
||||||
|
@@ -110,8 +110,8 @@ namespace
|
|||||||
bool bIsRequestSize = false;
|
bool bIsRequestSize = false;
|
||||||
DAVResource aResource;
|
DAVResource aResource;
|
||||||
DAVRequestHeaders aPartialGet;
|
DAVRequestHeaders aPartialGet;
|
||||||
aPartialGet.push_back( DAVRequestHeader( OUString( "Range" ), // see <https://tools.ietf.org/html/rfc7233#section-3.1>
|
aPartialGet.emplace_back( OUString( "Range" ), // see <https://tools.ietf.org/html/rfc7233#section-3.1>
|
||||||
OUString( "bytes=0-0" ) ) );
|
OUString( "bytes=0-0" ) );
|
||||||
|
|
||||||
for ( std::vector< rtl::OUString >::const_iterator it = aHeaderNames.begin();
|
for ( std::vector< rtl::OUString >::const_iterator it = aHeaderNames.begin();
|
||||||
it != aHeaderNames.end(); ++it )
|
it != aHeaderNames.end(); ++it )
|
||||||
@@ -127,8 +127,8 @@ namespace
|
|||||||
{
|
{
|
||||||
// we need to know if the server accepts range requests for a resource
|
// we need to know if the server accepts range requests for a resource
|
||||||
// and the range unit it uses
|
// and the range unit it uses
|
||||||
aHeaderNames.push_back( OUString( "Accept-Ranges" ) ); // see <https://tools.ietf.org/html/rfc7233#section-2.3>
|
aHeaderNames.emplace_back( "Accept-Ranges" ); // see <https://tools.ietf.org/html/rfc7233#section-2.3>
|
||||||
aHeaderNames.push_back( OUString( "Content-Range" ) ); // see <https://tools.ietf.org/html/rfc7233#section-4.2>
|
aHeaderNames.emplace_back( "Content-Range" ); // see <https://tools.ietf.org/html/rfc7233#section-4.2>
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -1522,7 +1522,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
|
|||||||
// in case of not DAV PROFIND (previously in program flow) failed
|
// in case of not DAV PROFIND (previously in program flow) failed
|
||||||
// so we need to add the only prop that's common
|
// so we need to add the only prop that's common
|
||||||
// to DAV and NON_DAV: MediaType, that maps to Content-Type
|
// to DAV and NON_DAV: MediaType, that maps to Content-Type
|
||||||
aHeaderNames.push_back( "Content-Type" );
|
aHeaderNames.emplace_back("Content-Type" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!aHeaderNames.empty()) try
|
if (!aHeaderNames.empty()) try
|
||||||
@@ -2479,10 +2479,9 @@ void Content::queryChildren( ContentRefList& rChildren )
|
|||||||
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
( nPos == ( aChildURL.getLength() - 1 ) ) )
|
||||||
{
|
{
|
||||||
// No further slashes / only a final slash. It's a child!
|
// No further slashes / only a final slash. It's a child!
|
||||||
rChildren.push_back(
|
rChildren.emplace_back(
|
||||||
::webdav_ucp::Content::ContentRef(
|
|
||||||
static_cast< ::webdav_ucp::Content * >(
|
static_cast< ::webdav_ucp::Content * >(
|
||||||
xChild.get() ) ) );
|
xChild.get() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
@@ -4277,10 +4276,9 @@ bool Content::isResourceAvailable( const css::uno::Reference< css::ucb::XCommand
|
|||||||
// do a GET with a payload of 0, the server does not
|
// do a GET with a payload of 0, the server does not
|
||||||
// support HEAD (or has HEAD disabled)
|
// support HEAD (or has HEAD disabled)
|
||||||
DAVRequestHeaders aPartialGet;
|
DAVRequestHeaders aPartialGet;
|
||||||
aPartialGet.push_back(
|
aPartialGet.emplace_back(
|
||||||
DAVRequestHeader(
|
|
||||||
OUString( "Range" ),
|
OUString( "Range" ),
|
||||||
OUString( "bytes=0-0" )));
|
OUString( "bytes=0-0" ));
|
||||||
|
|
||||||
rResAccess->GET0( aPartialGet,
|
rResAccess->GET0( aPartialGet,
|
||||||
aHeaderNames,
|
aHeaderNames,
|
||||||
|
@@ -734,11 +734,8 @@ void InternetProxyDecider_Impl::setNoProxyList(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_aNoProxyList.push_back(
|
m_aNoProxyList.emplace_back( WildCard( aToken ),
|
||||||
NoProxyListEntry( WildCard( aToken ),
|
WildCard( aFullyQualifiedHost.makeStringAndClear() ) );
|
||||||
WildCard(
|
|
||||||
aFullyQualifiedHost
|
|
||||||
.makeStringAndClear() ) ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( nEnd != nLen )
|
if ( nEnd != nLen )
|
||||||
|
@@ -205,9 +205,8 @@ void ContentProviderImplHelper::queryExistingContents(
|
|||||||
uno::Reference< ucb::XContent > xContent( (*it).second );
|
uno::Reference< ucb::XContent > xContent( (*it).second );
|
||||||
if ( xContent.is() )
|
if ( xContent.is() )
|
||||||
{
|
{
|
||||||
rContents.push_back(
|
rContents.emplace_back(
|
||||||
rtl::Reference< ContentImplHelper >(
|
static_cast< ContentImplHelper * >( xContent.get() ) );
|
||||||
static_cast< ContentImplHelper * >( xContent.get() ) ) );
|
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
@@ -1084,7 +1084,7 @@ const FontNameAttr* FontSubstConfiguration::getSubstInfo( const OUString& rFontN
|
|||||||
|
|
||||||
::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings( true));
|
::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings( true));
|
||||||
if (aLanguageTag.getLanguage() != "en")
|
if (aLanguageTag.getLanguage() != "en")
|
||||||
aFallbacks.push_back("en");
|
aFallbacks.emplace_back("en");
|
||||||
|
|
||||||
for (::std::vector< OUString >::const_iterator fb( aFallbacks.begin()); fb != aFallbacks.end(); ++fb)
|
for (::std::vector< OUString >::const_iterator fb( aFallbacks.begin()); fb != aFallbacks.end(); ++fb)
|
||||||
{
|
{
|
||||||
|
@@ -146,7 +146,7 @@ namespace utl
|
|||||||
}
|
}
|
||||||
|
|
||||||
OEventListenerImpl* pListenerImpl = new OEventListenerImpl(this, _rxComp);
|
OEventListenerImpl* pListenerImpl = new OEventListenerImpl(this, _rxComp);
|
||||||
m_pImpl->aListeners.push_back(pListenerImpl);
|
m_pImpl->aListeners.emplace_back(pListenerImpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace utl
|
} // namespace utl
|
||||||
|
@@ -190,7 +190,7 @@ namespace DOM { namespace events {
|
|||||||
{
|
{
|
||||||
Reference< XEventTarget > const xRef(
|
Reference< XEventTarget > const xRef(
|
||||||
rDocument.GetCNode(cur).get());
|
rDocument.GetCNode(cur).get());
|
||||||
captureVector.push_back(::std::make_pair(xRef, cur));
|
captureVector.emplace_back(xRef, cur);
|
||||||
cur = cur->parent;
|
cur = cur->parent;
|
||||||
}
|
}
|
||||||
captureListeners = m_CaptureListeners;
|
captureListeners = m_CaptureListeners;
|
||||||
|
@@ -61,7 +61,7 @@ sal_Bool SAL_CALL VbaEventsHelperBase::processVbaEvent( sal_Int32 nEventId, cons
|
|||||||
processing the original event. All unprocessed events are collected in
|
processing the original event. All unprocessed events are collected in
|
||||||
a queue. First element in the queue is the next event to be processed. */
|
a queue. First element in the queue is the next event to be processed. */
|
||||||
EventQueue aEventQueue;
|
EventQueue aEventQueue;
|
||||||
aEventQueue.push_back( EventQueueEntry( nEventId, rArgs ) );
|
aEventQueue.emplace_back( nEventId, rArgs );
|
||||||
|
|
||||||
/* bCancel will contain the current Cancel value. It is possible that
|
/* bCancel will contain the current Cancel value. It is possible that
|
||||||
multiple events will try to modify the Cancel value. Every event
|
multiple events will try to modify the Cancel value. Every event
|
||||||
|
@@ -80,7 +80,7 @@ void ScVbaShapes::initBaseCollection()
|
|||||||
sal_Int32 nLen = m_xIndexAccess->getCount();
|
sal_Int32 nLen = m_xIndexAccess->getCount();
|
||||||
aShapes.reserve( nLen );
|
aShapes.reserve( nLen );
|
||||||
for ( sal_Int32 index=0; index<nLen; ++index )
|
for ( sal_Int32 index=0; index<nLen; ++index )
|
||||||
aShapes.push_back( uno::Reference< drawing::XShape >( m_xIndexAccess->getByIndex( index ) , uno::UNO_QUERY ) );
|
aShapes.emplace_back( m_xIndexAccess->getByIndex( index ) , uno::UNO_QUERY );
|
||||||
uno::Reference< container::XIndexAccess > xShapes( new XNamedObjectCollectionHelper< drawing::XShape >( aShapes ) );
|
uno::Reference< container::XIndexAccess > xShapes( new XNamedObjectCollectionHelper< drawing::XShape >( aShapes ) );
|
||||||
m_xIndexAccess.set( xShapes, uno::UNO_QUERY );
|
m_xIndexAccess.set( xShapes, uno::UNO_QUERY );
|
||||||
m_xNameAccess.set( xShapes, uno::UNO_QUERY );
|
m_xNameAccess.set( xShapes, uno::UNO_QUERY );
|
||||||
|
Reference in New Issue
Block a user