Kaydet (Commit) de95cdd5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't use temporary object

This avoids invalid memory access with fdo45268-1.xlsx

Change-Id: If141df14d7d747023c944c83c2d8957abe8b95ad
üst 3466cbc0
...@@ -275,7 +275,7 @@ public: ...@@ -275,7 +275,7 @@ public:
/** Returns the names of all shared or group items. */ /** Returns the names of all shared or group items. */
void getCacheItemNames( ::std::vector< OUString >& orItemNames ) const; void getCacheItemNames( ::std::vector< OUString >& orItemNames ) const;
/** Returns shared or group items. */ /** Returns shared or group items. */
PivotCacheItemList getCacheItems() const; const PivotCacheItemList& getCacheItems() const;
/** Creates inplace numeric grouping settings. */ /** Creates inplace numeric grouping settings. */
void convertNumericGrouping( void convertNumericGrouping(
......
...@@ -749,7 +749,7 @@ void PivotCacheField::getCacheItemNames( ::std::vector< OUString >& orItemNames ...@@ -749,7 +749,7 @@ void PivotCacheField::getCacheItemNames( ::std::vector< OUString >& orItemNames
maSharedItems.getCacheItemNames( orItemNames ); maSharedItems.getCacheItemNames( orItemNames );
} }
PivotCacheItemList PivotCacheField::getCacheItems() const const PivotCacheItemList& PivotCacheField::getCacheItems() const
{ {
if( hasGroupItems() ) if( hasGroupItems() )
return maGroupItems; return maGroupItems;
......
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