[Libreoffice-commits] core.git: fpicker/source vcl/inc vcl/osx

Caolán McNamara caolanm at redhat.com
Fri Sep 18 02:53:05 PDT 2015


 fpicker/source/office/asyncfilepicker.cxx           |    4 ++--
 fpicker/source/win32/filepicker/asyncrequests.hxx   |    8 ++++----
 fpicker/source/win32/filepicker/filepickerstate.cxx |    7 +++----
 vcl/inc/pch/precompiled_vcl.hxx                     |    1 -
 vcl/inc/win/salbmp.h                                |    4 ++--
 vcl/osx/DataFlavorMapping.hxx                       |    3 +--
 6 files changed, 12 insertions(+), 15 deletions(-)

New commits:
commit f36a36b5750d0e3ae88a89013a84dd6f4e4dfdc6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 18 09:29:33 2015 +0100

    boost->std
    
    Change-Id: Idac11d3a634ba0a899db605449c894d4c3a61ead
    Reviewed-on: https://gerrit.libreoffice.org/18680
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/fpicker/source/office/asyncfilepicker.cxx b/fpicker/source/office/asyncfilepicker.cxx
index 6150b44..e99665b 100644
--- a/fpicker/source/office/asyncfilepicker.cxx
+++ b/fpicker/source/office/asyncfilepicker.cxx
@@ -23,7 +23,7 @@
 #include "svtools/fileview.hxx"
 #include <tools/debug.hxx>
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 
 namespace svt
@@ -76,7 +76,7 @@ namespace svt
         if ( nMaxTimeout <= nMinTimeout )
             nMaxTimeout = nMinTimeout + 30000;
 
-        boost::scoped_ptr< FileViewAsyncAction > pActionDescriptor;
+        std::unique_ptr< FileViewAsyncAction > pActionDescriptor;
         if ( nMinTimeout )
         {
             pActionDescriptor.reset( new FileViewAsyncAction );
diff --git a/fpicker/source/win32/filepicker/asyncrequests.hxx b/fpicker/source/win32/filepicker/asyncrequests.hxx
index 413ff96..f786bab 100644
--- a/fpicker/source/win32/filepicker/asyncrequests.hxx
+++ b/fpicker/source/win32/filepicker/asyncrequests.hxx
@@ -26,7 +26,7 @@
 #include <osl/thread.hxx>
 #include <osl/time.h>
 #include <queue>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 namespace fpicker{
 namespace win32{
@@ -113,8 +113,8 @@ class Request
         ::comphelper::SequenceAsHashMap m_lArguments;
 };
 
-typedef ::boost::shared_ptr< Request > RequestRef;
-typedef ::std::queue< RequestRef >  RequestQueue;
+typedef std::shared_ptr< Request > RequestRef;
+typedef std::queue< RequestRef >  RequestQueue;
 
 
 class RequestHandler
@@ -125,7 +125,7 @@ class RequestHandler
         virtual void after() = 0;
 };
 
-typedef ::boost::shared_ptr< RequestHandler > RequestHandlerRef;
+typedef std::shared_ptr< RequestHandler > RequestHandlerRef;
 
 
 /** @todo document me
diff --git a/fpicker/source/win32/filepicker/filepickerstate.cxx b/fpicker/source/win32/filepicker/filepickerstate.cxx
index 8251ed9..e1e80dc 100644
--- a/fpicker/source/win32/filepicker/filepickerstate.cxx
+++ b/fpicker/source/win32/filepicker/filepickerstate.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <boost/scoped_ptr.hpp>
-
 #include "filepickerstate.hxx"
 #include <osl/diagnose.h>
 #include "controlaccess.hxx"
@@ -32,6 +30,7 @@
 #include <com/sun/star/uno/XInterface.hpp>
 #include <osl/file.hxx>
 #include "FileOpenDlg.hxx"
+#include <memory>
 
 #include "../misc/WinImplHelper.hxx"
 
@@ -104,7 +103,7 @@ Any SAL_CALL CNonExecuteFilePickerState::getValue( sal_Int16 aControlId, sal_Int
     if (m_FirstControlCommand)
     {
         // pass the request along the command-chain
-        boost::scoped_ptr< CControlCommandResult > result( m_FirstControlCommand->handleRequest( &value_request ) );
+        std::unique_ptr< CControlCommandResult > result( m_FirstControlCommand->handleRequest( &value_request ) );
 
         OSL_ENSURE( result.get(), "invalid getValue request" );
 
@@ -168,7 +167,7 @@ OUString SAL_CALL CNonExecuteFilePickerState::getLabel( sal_Int16 aControlId )
     CControlCommandRequest label_request( aControlId );
 
     // pass the request along the command-chain
-    boost::scoped_ptr< CControlCommandResult > result( m_FirstControlCommand->handleRequest( &label_request ) );
+    std::unique_ptr< CControlCommandResult > result( m_FirstControlCommand->handleRequest( &label_request ) );
 
     OSL_ENSURE( result->hasResult( ), "invalid getValue request" );
 
diff --git a/vcl/inc/pch/precompiled_vcl.hxx b/vcl/inc/pch/precompiled_vcl.hxx
index ac10eef..4d147ed 100644
--- a/vcl/inc/pch/precompiled_vcl.hxx
+++ b/vcl/inc/pch/precompiled_vcl.hxx
@@ -137,7 +137,6 @@
 #include <boost/optional.hpp>
 #include <boost/ptr_container/ptr_vector.hpp>
 #include <memory>
-#include <boost/shared_ptr.hpp>
 #include <cassert>
 #include <cmath>
 #include <com/sun/star/accessibility/AccessibleEventObject.hpp>
diff --git a/vcl/inc/win/salbmp.h b/vcl/inc/win/salbmp.h
index 879e441..05df37c4 100644
--- a/vcl/inc/win/salbmp.h
+++ b/vcl/inc/win/salbmp.h
@@ -23,7 +23,7 @@
 #include <tools/gen.hxx>
 #include <win/wincomp.hxx>
 #include <salbmp.hxx>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 // - SalBitmap  -
 
@@ -32,7 +32,7 @@ class   BitmapColor;
 class   BitmapPalette;
 class   SalGraphics;
 namespace Gdiplus { class Bitmap; }
-typedef boost::shared_ptr< Gdiplus::Bitmap > GdiPlusBmpPtr;
+typedef std::shared_ptr< Gdiplus::Bitmap > GdiPlusBmpPtr;
 
 class WinSalBitmap : public SalBitmap
 {
diff --git a/vcl/osx/DataFlavorMapping.hxx b/vcl/osx/DataFlavorMapping.hxx
index b05d122..9632313 100644
--- a/vcl/osx/DataFlavorMapping.hxx
+++ b/vcl/osx/DataFlavorMapping.hxx
@@ -31,7 +31,6 @@
 
 #include <memory>
 #include <unordered_map>
-#include <boost/shared_ptr.hpp>
 
 /* An interface to get the clipboard data in either
    system or OOo format.
@@ -123,7 +122,7 @@ private:
   mutable OfficeOnlyTypes maOfficeOnlyTypes;
 };
 
-typedef boost::shared_ptr<DataFlavorMapper> DataFlavorMapperPtr_t;
+typedef std::shared_ptr<DataFlavorMapper> DataFlavorMapperPtr_t;
 
 #endif // INCLUDED_VCL_OSX_DATAFLAVORMAPPING_HXX
 


More information about the Libreoffice-commits mailing list