summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-16 13:26:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-16 13:26:09 +0000
commita36882348973b8af6edd713a9d4e67af72a4bd86 (patch)
tree3adc821d99d1294fdcce96829a60f9c08c1a8070 /include
parentbd08ebde36e5bce2d56d1c50b7fd251a2e8035e4 (diff)
another dependency still required
Change-Id: I0f0ce96ee8209f711739952422d642a012252d1f
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/configuration.hxx44
-rw-r--r--include/xmlreader/xmlreader.hxx6
2 files changed, 36 insertions, 14 deletions
diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index 31146f8ac726..2a0a593cf255 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 45f53d94fc88..27a4be2aa425 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