diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-11 16:14:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-11 16:47:09 +0100 |
commit | 09fa378e11cec924f9cd2b95d0eedb2599fa088e (patch) | |
tree | 4d60f88c71bcec656912750dcb39ec21ea71030a /sd | |
parent | 5c3b81d21d163d89ea95c2ca0c23b467b6537025 (diff) |
this can be a reference surely
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index fe6b48ae6a16..91a05700a2c6 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -336,12 +336,12 @@ void SdDrawDocument::IterateBookmarkPages( SdDrawDocument* pBookmarkDoc, List* p class InsertBookmarkAsPage_FindDuplicateLayouts : public SdDrawDocument::InsertBookmarkAsPage_PageFunctorBase { public: - InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<rtl::OUString> *pLayoutsToTransfer ) - : mpLayoutsToTransfer(pLayoutsToTransfer) {} + InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<rtl::OUString> &rLayoutsToTransfer ) + : mrLayoutsToTransfer(rLayoutsToTransfer) {} virtual ~InsertBookmarkAsPage_FindDuplicateLayouts() {}; virtual void operator()( SdDrawDocument&, SdPage* ); private: - std::vector<rtl::OUString> *mpLayoutsToTransfer; + std::vector<rtl::OUString> &mrLayoutsToTransfer; }; void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc, SdPage* pBMMPage ) @@ -355,9 +355,9 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc rtl::OUString aLayout(aFullNameLayout); std::vector<rtl::OUString>::const_iterator pIter = - find(mpLayoutsToTransfer->begin(),mpLayoutsToTransfer->end(),aLayout); + find(mrLayoutsToTransfer.begin(), mrLayoutsToTransfer.end(),aLayout); - bool bFound = pIter != mpLayoutsToTransfer->end(); + bool bFound = pIter != mrLayoutsToTransfer.end(); const sal_uInt16 nMPageCount = rDoc.GetMasterPageCount(); for (sal_uInt16 nMPage = 0; nMPage < nMPageCount && !bFound; nMPage++) @@ -376,7 +376,7 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc } if (!bFound) - mpLayoutsToTransfer->push_back(aLayout); + mrLayoutsToTransfer.push_back(aLayout); } /** Just add one page to the container given to the constructor. @@ -514,7 +514,7 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage( // Refactored copy'n'pasted layout name collection into IterateBookmarkPages // std::vector<rtl::OUString> aLayoutsToTransfer; - InsertBookmarkAsPage_FindDuplicateLayouts aSearchFunctor( &aLayoutsToTransfer ); + InsertBookmarkAsPage_FindDuplicateLayouts aSearchFunctor( aLayoutsToTransfer ); IterateBookmarkPages( pBookmarkDoc, pBookmarkList, nBMSdPageCount, aSearchFunctor ); |