[Libreoffice-commits] core.git: unoxml/source

Stephan Bergmann sbergman at redhat.com
Mon Apr 14 23:38:01 PDT 2014


 unoxml/source/rdf/CBlankNode.cxx |    7 +++----
 unoxml/source/rdf/CLiteral.cxx   |    7 +++----
 unoxml/source/rdf/CURI.cxx       |    7 +++----
 3 files changed, 9 insertions(+), 12 deletions(-)

New commits:
commit f981c42edac92ac03dd04e87baab238b84963de5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 15 08:37:14 2014 +0200

    Clean up function declarations
    
    Change-Id: I1be08414e3c816f01a9712eeb9474acc16838389

diff --git a/unoxml/source/rdf/CBlankNode.cxx b/unoxml/source/rdf/CBlankNode.cxx
index 1d1e7b6..2c16ee4 100644
--- a/unoxml/source/rdf/CBlankNode.cxx
+++ b/unoxml/source/rdf/CBlankNode.cxx
@@ -19,6 +19,7 @@
 
 #include "CNodes.hxx"
 
+#include <boost/noncopyable.hpp>
 #include <cppuhelper/implbase3.hxx>
 #include <cppuhelper/supportsservice.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -35,7 +36,8 @@ class CBlankNode:
     public ::cppu::WeakImplHelper3<
         css::lang::XServiceInfo,
         css::lang::XInitialization,
-        css::rdf::XBlankNode>
+        css::rdf::XBlankNode>,
+    private boost::noncopyable
 {
 public:
     explicit CBlankNode(css::uno::Reference< css::uno::XComponentContext > const & context);
@@ -53,9 +55,6 @@ public:
     virtual OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
 private:
-    CBlankNode(const CBlankNode &); // not defined
-    CBlankNode& operator=(const CBlankNode &); // not defined
-
     css::uno::Reference< css::uno::XComponentContext > m_xContext;
 
     OUString m_NodeID;
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index 6d69fac..5fd0bef 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -19,6 +19,7 @@
 
 #include "CNodes.hxx"
 
+#include <boost/noncopyable.hpp>
 #include <cppuhelper/implbase3.hxx>
 #include <cppuhelper/supportsservice.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -37,7 +38,8 @@ class CLiteral:
     public ::cppu::WeakImplHelper3<
         css::lang::XServiceInfo,
         css::lang::XInitialization,
-        css::rdf::XLiteral>
+        css::rdf::XLiteral>,
+    private boost::noncopyable
 {
 public:
     explicit CLiteral(css::uno::Reference< css::uno::XComponentContext > const & context);
@@ -60,9 +62,6 @@ public:
     virtual css::uno::Reference< css::rdf::XURI > SAL_CALL getDatatype() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
 private:
-    CLiteral(const CLiteral &); // not defined
-    CLiteral& operator=(const CLiteral &); // not defined
-
     css::uno::Reference< css::uno::XComponentContext > m_xContext;
 
     OUString m_Value;
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx
index 6ddd1c6..228af1c 100644
--- a/unoxml/source/rdf/CURI.cxx
+++ b/unoxml/source/rdf/CURI.cxx
@@ -19,6 +19,7 @@
 
 #include "CNodes.hxx"
 
+#include <boost/noncopyable.hpp>
 #include <cppuhelper/implbase3.hxx>
 #include <cppuhelper/supportsservice.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -36,7 +37,8 @@ class CURI:
     public ::cppu::WeakImplHelper3<
         css::lang::XServiceInfo,
         css::lang::XInitialization,
-        css::rdf::XURI>
+        css::rdf::XURI>,
+    private boost::noncopyable
 {
 public:
     explicit CURI(css::uno::Reference< css::uno::XComponentContext > const & context);
@@ -58,9 +60,6 @@ public:
     virtual OUString SAL_CALL getNamespace() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
 private:
-    CURI(const CURI &); // not defined
-    CURI& operator=(const CURI &); // not defined
-
     /// handle css.rdf.URIs
     void SAL_CALL initFromConstant(const sal_Int16 i_Constant);
 


More information about the Libreoffice-commits mailing list