incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1196092 - in /incubator/ooo/trunk/main/sd/source/ui/slidesorter: controller/SlsSlotManager.cxx inc/controller/SlsPageSelector.hxx
Date Tue, 01 Nov 2011 16:18:25 GMT
Author: pfg
Date: Tue Nov  1 16:18:25 2011
New Revision: 1196092

URL: http://svn.apache.org/viewvc?rev=1196092&view=rev
Log:
i118560 - slide sorter: pass PageSelector object by reference by Andre Fischer

Modified:
    incubator/ooo/trunk/main/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
    incubator/ooo/trunk/main/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx

Modified: incubator/ooo/trunk/main/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx?rev=1196092&r1=1196091&r2=1196092&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx Tue Nov
 1 16:18:25 2011
@@ -1159,10 +1159,13 @@ void SlotManager::DuplicateSelectedSlide
         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.

Modified: incubator/ooo/trunk/main/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx?rev=1196092&r1=1196091&r2=1196092&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx Tue
Nov  1 16:18:25 2011
@@ -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);



Mime
View raw message