Kaydet (Commit) dcb2fbda authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: passing OUString by value, rather pass by reference

Change-Id: I2577234385257ed0512403e5c9e34aa71ed5ce1f
üst d910a514
...@@ -130,7 +130,8 @@ struct FieldConversion ...@@ -130,7 +130,8 @@ struct FieldConversion
typedef ::std::map< OUString, FieldConversion> typedef ::std::map< OUString, FieldConversion>
FieldConversionMap_t; FieldConversionMap_t;
uno::Any FloatingTableInfo::getPropertyValue(OUString propertyName){ uno::Any FloatingTableInfo::getPropertyValue(const OUString &propertyName)
{
beans::PropertyValue* pFrameProperties = m_aFrameProperties.getArray(); beans::PropertyValue* pFrameProperties = m_aFrameProperties.getArray();
for( int i = 0 ; i < m_aFrameProperties.getLength(); i++ ) for( int i = 0 ; i < m_aFrameProperties.getLength(); i++ )
......
...@@ -286,7 +286,7 @@ struct FloatingTableInfo ...@@ -286,7 +286,7 @@ struct FloatingTableInfo
m_nTableWidth(nTableWidth) m_nTableWidth(nTableWidth)
{ {
} }
uno::Any getPropertyValue(OUString propertyName); uno::Any getPropertyValue(const OUString &propertyName);
}; };
class DomainMapper; class DomainMapper;
......
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