diff options
author | Pedro Giffuni <pfg@apache.org> | 2011-11-01 15:18:25 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2011-11-01 15:18:25 +0000 |
commit | 8c70009b33e1175366c7a5daab6225b10c740bbf (patch) | |
tree | 1b421a9d62afb77da649a6827698e5db4e2613b2 /sd | |
parent | f30110565adafc75feb73eac9707d6d5f86f90f4 (diff) |
i118560 - slide sorter: pass PageSelector object by reference by Andre Fischer
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 048880f2a8aa..44e080ca0aa1 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -1159,10 +1159,13 @@ void SlotManager::DuplicateSelectedSlides (SfxRequest& rRequest) aPagesToSelect.end(), ::boost::bind( static_cast<void (PageSelector::*)(const SdPage*)>(&PageSelector::SelectPage), - rSelector, - _1)); + ::boost::ref(rSelector), + _1)); } + + + void SlotManager::ExecuteCommandAsynchronously (::std::auto_ptr<Command> pCommand) { // Ownership of command is (implicitely) transferred to the queue. diff --git a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx index b0a9cfa148cb..fba0bbb38d17 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx @@ -33,6 +33,8 @@ #include <com/sun/star/drawing/XDrawPage.hpp> #include <vector> #include <memory> +#include <boost/noncopyable.hpp> + class SdPage; @@ -62,7 +64,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); |