Kaydet (Commit) f82da782 authored tarafından awf's avatar awf Kaydeden (comit) Thorsten Behrens

i118560 - slide sorter: pass PageSelector object by reference

 * found as LGPLv3-only fix at svn rev 1196092 (http://svn.apache.org/viewvc?view=revision&revision=1196092)
üst 825839b2
......@@ -1156,8 +1156,8 @@ void SlotManager::DuplicateSelectedSlides (SfxRequest& rRequest)
aPagesToSelect.end(),
::boost::bind(
static_cast<void (PageSelector::*)(const SdPage*)>(&PageSelector::SelectPage),
rSelector,
_1));
::boost::ref(rSelector),
_1));
}
IMPL_LINK(SlotManager, UserEventCallback, void*, EMPTYARG)
......
......@@ -34,6 +34,8 @@
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <vector>
#include <memory>
#include <boost/noncopyable.hpp>
class SdPage;
......@@ -63,7 +65,7 @@ class SlideSorterController;
Indices of pages relate allways to the number of all pages in the model
(as returned by GetPageCount()) not just the selected pages.
*/
class PageSelector
class PageSelector : private ::boost::noncopyable
{
public:
PageSelector (SlideSorter& rSlideSorter);
......
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