[Libreoffice-commits] core.git: include/comphelper include/xmlreader unotools/Library_utl.mk

Caolán McNamara caolanm at redhat.com
Mon Feb 16 05:26:49 PST 2015


 include/comphelper/configuration.hxx |   44 +++++++++++++++++++++++++----------
 include/xmlreader/xmlreader.hxx      |    6 +++-
 unotools/Library_utl.mk              |    2 +
 3 files changed, 38 insertions(+), 14 deletions(-)

New commits:
commit a36882348973b8af6edd713a9d4e67af72a4bd86
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Feb 16 13:26:09 2015 +0000

    another dependency still required
    
    Change-Id: I0f0ce96ee8209f711739952422d642a012252d1f

diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index 31146f8..2a0a593 100644
--- a/include/comphelper/configuration.hxx
+++ b/include/comphelper/configuration.hxx
@@ -12,7 +12,6 @@
 
 #include <sal/config.h>
 
-#include <boost/noncopyable.hpp>
 #include <boost/optional.hpp>
 #include <com/sun/star/uno/Any.hxx>
 #include <com/sun/star/uno/Reference.hxx>
@@ -43,7 +42,7 @@ namespace detail { class ConfigurationWrapper; }
 ///
 /// This is the only class from this header file that client code should use
 /// directly.
-class COMPHELPER_DLLPUBLIC ConfigurationChanges: private boost::noncopyable {
+class COMPHELPER_DLLPUBLIC ConfigurationChanges {
 public:
     static std::shared_ptr<ConfigurationChanges> create(
         com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -54,6 +53,9 @@ public:
     void commit() const;
 
 private:
+    ConfigurationChanges(const ConfigurationChanges&) SAL_DELETED_FUNCTION;
+    ConfigurationChanges& operator=(const ConfigurationChanges&) SAL_DELETED_FUNCTION;
+
     SAL_DLLPRIVATE ConfigurationChanges(
         com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
             const & context);
@@ -79,7 +81,7 @@ private:
 namespace detail {
 
 /// @internal
-class COMPHELPER_DLLPUBLIC ConfigurationWrapper: private boost::noncopyable {
+class COMPHELPER_DLLPUBLIC ConfigurationWrapper {
 public:
     static ConfigurationWrapper const & get(
         com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -127,6 +129,9 @@ public:
     std::shared_ptr< ConfigurationChanges > createChanges() const;
 
 private:
+    ConfigurationWrapper(const ConfigurationWrapper&) SAL_DELETED_FUNCTION;
+    ConfigurationWrapper& operator=(const ConfigurationWrapper&) SAL_DELETED_FUNCTION;
+
     com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
         context_;
 
@@ -135,7 +140,7 @@ private:
 };
 
 /// @internal
-template< typename T > struct Convert: private boost::noncopyable {
+template< typename T > struct Convert {
     static com::sun::star::uno::Any toAny(T const & value)
     { return com::sun::star::uno::makeAny(value); }
 
@@ -143,13 +148,15 @@ template< typename T > struct Convert: private boost::noncopyable {
     { return value.get< T >(); }
 
 private:
+    Convert(const Convert&) SAL_DELETED_FUNCTION;
+    Convert& operator=(const Convert&) SAL_DELETED_FUNCTION;
+
     Convert() SAL_DELETED_FUNCTION;
     ~Convert() SAL_DELETED_FUNCTION;
 };
 
 /// @internal
-template< typename T > struct Convert< boost::optional< T > >:
-    private boost::noncopyable
+template< typename T > struct Convert< boost::optional< T > >
 {
     static com::sun::star::uno::Any toAny(boost::optional< T > const & value) {
         return value
@@ -164,6 +171,9 @@ template< typename T > struct Convert< boost::optional< T > >:
     }
 
 private:
+    Convert(const Convert&) SAL_DELETED_FUNCTION;
+    Convert& operator=(const Convert&) SAL_DELETED_FUNCTION;
+
     Convert() SAL_DELETED_FUNCTION;
     ~Convert() SAL_DELETED_FUNCTION;
 };
@@ -175,8 +185,7 @@ private:
 /// Automatically generated headers for the various configuration properties
 /// derive from this template and make available its member functions to access
 /// each given configuration property.
-template< typename T, typename U > struct ConfigurationProperty:
-    private boost::noncopyable
+template< typename T, typename U > struct ConfigurationProperty
 {
     /// Get the value of the given (non-localized) configuration property.
     ///
@@ -208,6 +217,9 @@ template< typename T, typename U > struct ConfigurationProperty:
     }
 
 private:
+    ConfigurationProperty(const ConfigurationProperty&) SAL_DELETED_FUNCTION;
+    ConfigurationProperty& operator=(const ConfigurationProperty&) SAL_DELETED_FUNCTION;
+
     ConfigurationProperty() SAL_DELETED_FUNCTION;
     ~ConfigurationProperty() SAL_DELETED_FUNCTION;
 };
@@ -217,8 +229,7 @@ private:
 /// Automatically generated headers for the various localized configuration
 /// properties derive from this template and make available its member functions
 /// to access each given localized configuration property.
-template< typename T, typename U > struct ConfigurationLocalizedProperty:
-    private boost::noncopyable
+template< typename T, typename U > struct ConfigurationLocalizedProperty
 {
     /// Get the value of the given localized configuration property, for the
     /// locale currently set at the
@@ -254,6 +265,9 @@ template< typename T, typename U > struct ConfigurationLocalizedProperty:
     }
 
 private:
+    ConfigurationLocalizedProperty(const ConfigurationLocalizedProperty&) SAL_DELETED_FUNCTION;
+    ConfigurationLocalizedProperty& operator=(const ConfigurationLocalizedProperty&) SAL_DELETED_FUNCTION;
+
     ConfigurationLocalizedProperty() SAL_DELETED_FUNCTION;
     ~ConfigurationLocalizedProperty() SAL_DELETED_FUNCTION;
 };
@@ -263,7 +277,7 @@ private:
 /// Automatically generated headers for the various configuration groups derive
 /// from this template and make available its member functions to access each
 /// given configuration group.
-template< typename T > struct ConfigurationGroup: private boost::noncopyable {
+template< typename T > struct ConfigurationGroup {
     /// Get read-only access to the given configuration group.
     static com::sun::star::uno::Reference<
         com::sun::star::container::XHierarchicalNameAccess >
@@ -287,6 +301,9 @@ template< typename T > struct ConfigurationGroup: private boost::noncopyable {
     }
 
 private:
+    ConfigurationGroup(const ConfigurationGroup&) SAL_DELETED_FUNCTION;
+    ConfigurationGroup& operator=(const ConfigurationGroup&) SAL_DELETED_FUNCTION;
+
     ConfigurationGroup() SAL_DELETED_FUNCTION;
     ~ConfigurationGroup() SAL_DELETED_FUNCTION;
 };
@@ -296,7 +313,7 @@ private:
 /// Automatically generated headers for the various configuration sets derive
 /// from this template and make available its member functions to access each
 /// given configuration set.
-template< typename T > struct ConfigurationSet: private boost::noncopyable {
+template< typename T > struct ConfigurationSet {
     /// Get read-only access to the given configuration set.
     static
     com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >
@@ -320,6 +337,9 @@ template< typename T > struct ConfigurationSet: private boost::noncopyable {
     }
 
 private:
+    ConfigurationSet(const ConfigurationSet&) SAL_DELETED_FUNCTION;
+    ConfigurationSet& operator=(const ConfigurationSet&) SAL_DELETED_FUNCTION;
+
     ConfigurationSet() SAL_DELETED_FUNCTION;
     ~ConfigurationSet() SAL_DELETED_FUNCTION;
 };
diff --git a/include/xmlreader/xmlreader.hxx b/include/xmlreader/xmlreader.hxx
index 45f53d9..27a4be2 100644
--- a/include/xmlreader/xmlreader.hxx
+++ b/include/xmlreader/xmlreader.hxx
@@ -25,7 +25,6 @@
 #include <stack>
 #include <vector>
 
-#include <boost/noncopyable.hpp>
 #include <com/sun/star/container/NoSuchElementException.hpp>
 #include <com/sun/star/uno/RuntimeException.hpp>
 #include <osl/file.h>
@@ -37,7 +36,7 @@
 
 namespace xmlreader {
 
-class OOO_DLLPUBLIC_XMLREADER XmlReader: private boost::noncopyable {
+class OOO_DLLPUBLIC_XMLREADER XmlReader {
 public:
     XmlReader(char const *sStr, size_t nLength);
 
@@ -69,6 +68,9 @@ public:
     const OUString& getUrl() const { return fileUrl_;}
 
 private:
+    XmlReader(const XmlReader&) SAL_DELETED_FUNCTION;
+    XmlReader& operator=(const XmlReader&) SAL_DELETED_FUNCTION;
+
     typedef std::vector< Span > NamespaceIris;
 
     // If NamespaceData (and similarly ElementData and AttributeData) is made
diff --git a/unotools/Library_utl.mk b/unotools/Library_utl.mk
index 9067660..52f2eff 100644
--- a/unotools/Library_utl.mk
+++ b/unotools/Library_utl.mk
@@ -11,6 +11,8 @@
 # utl is the name of the library as it is found in Repository.mk
 $(eval $(call gb_Library_Library,utl))
 
+$(eval $(call gb_Library_use_external,utl,boost_headers))
+
 $(eval $(call gb_Library_use_custom_headers,utl,\
  officecfg/registry \
 ))


More information about the Libreoffice-commits mailing list