summaryrefslogtreecommitdiff
path: root/stoc/source/uriproc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-02 18:22:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-03 08:20:19 +0200
commit5cd46e2b3b8bbc81aca4d45717be05d2424a6c59 (patch)
tree139996fe55e04646a58521bf41ee646d8ba15199 /stoc/source/uriproc
parentd59fe933fe3ecabdc80737b72683923fc5bcae0e (diff)
Use boost::noncopyable
Change-Id: I9cba1299c54f196a5a7b35384f4c15bbbea273bb
Diffstat (limited to 'stoc/source/uriproc')
-rw-r--r--stoc/source/uriproc/ExternalUriReferenceTranslator.cxx10
-rw-r--r--stoc/source/uriproc/UriReferenceFactory.cxx18
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx16
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx16
-rw-r--r--stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx10
5 files changed, 33 insertions, 37 deletions
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
index 976a38635a03..a8a0f5a950e0 100644
--- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
+++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
@@ -20,6 +20,7 @@
#include "stocservices.hxx"
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -42,8 +43,10 @@
namespace {
-class Translator: public cppu::WeakImplHelper2<
- css::lang::XServiceInfo, css::uri::XExternalUriReferenceTranslator >
+class Translator:
+ public cppu::WeakImplHelper2<
+ css::lang::XServiceInfo, css::uri::XExternalUriReferenceTranslator>,
+ private boost::noncopyable
{
public:
explicit Translator(
@@ -68,9 +71,6 @@ public:
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- Translator(Translator &); // not implemented
- void operator =(Translator); // not implemented
-
virtual ~Translator() {}
css::uno::Reference< css::uno::XComponentContext > m_context;
diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx
index 2e3b35b7a62b..a3a7946e4592 100644
--- a/stoc/source/uriproc/UriReferenceFactory.cxx
+++ b/stoc/source/uriproc/UriReferenceFactory.cxx
@@ -25,6 +25,7 @@
#include <exception>
#include <vector>
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/WrappedTargetRuntimeException.hpp"
#include "com/sun/star/lang/XMultiComponentFactory.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
@@ -93,7 +94,10 @@ sal_Int32 parseScheme(OUString const & uriReference) {
return -1;
}
-class UriReference: public cppu::WeakImplHelper1< css::uri::XUriReference > {
+class UriReference:
+ public cppu::WeakImplHelper1<css::uri::XUriReference>,
+ private boost::noncopyable
+{
public:
UriReference(
OUString const & scheme, bool bIsHierarchical, bool bHasAuthority,
@@ -173,9 +177,6 @@ public:
{ m_base.clearFragment(); }
private:
- UriReference(UriReference &); // not implemented
- void operator =(UriReference); // not implemented
-
virtual ~UriReference() {}
stoc::uriproc::UriReference m_base;
@@ -257,8 +258,10 @@ void processSegments(
}
}
-class Factory: public cppu::WeakImplHelper2<
- css::lang::XServiceInfo, css::uri::XUriReferenceFactory >
+class Factory:
+ public cppu::WeakImplHelper2<
+ css::lang::XServiceInfo, css::uri::XUriReferenceFactory>,
+ private boost::noncopyable
{
public:
explicit Factory(
@@ -296,9 +299,6 @@ public:
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- Factory(Factory &); // not implemented
- void operator =(Factory); // not implemented
-
virtual ~Factory() {}
css::uno::Reference< css::uri::XUriReference > clone(
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
index fb37a0410373..514342841a03 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
@@ -23,6 +23,7 @@
#include <exception>
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/IllegalArgumentException.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -56,7 +57,8 @@ bool parseSchemeSpecificPart(OUString const & part) {
}
class UrlReference:
- public ::cppu::WeakImplHelper1< css::uri::XVndSunStarExpandUrlReference >
+ public ::cppu::WeakImplHelper1<css::uri::XVndSunStarExpandUrlReference>,
+ private boost::noncopyable
{
public:
UrlReference(OUString const & scheme, OUString const & path):
@@ -134,9 +136,6 @@ public:
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- UrlReference(UrlReference &); // not defined
- void operator =(UrlReference); // not defined
-
virtual ~UrlReference() {}
stoc::uriproc::UriReference base_;
@@ -152,8 +151,10 @@ OUString UrlReference::expand(
getPath(), ::rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8));
}
-class Parser: public ::cppu::WeakImplHelper2<
- css::lang::XServiceInfo, css::uri::XUriSchemeParser >
+class Parser:
+ public ::cppu::WeakImplHelper2<
+ css::lang::XServiceInfo, css::uri::XUriSchemeParser>,
+ private boost::noncopyable
{
public:
Parser() {}
@@ -175,9 +176,6 @@ public:
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- Parser(Parser &); // not defined
- void operator =(Parser); // not defined
-
virtual ~Parser() {}
};
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index 1bade014b80d..77cfff77f6e0 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -22,6 +22,7 @@
#include "UriReference.hxx"
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/IllegalArgumentException.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -190,7 +191,8 @@ bool parseSchemeSpecificPart(OUString const & part) {
}
class UrlReference:
- public cppu::WeakImplHelper1< css::uri::XVndSunStarScriptUrlReference >
+ public cppu::WeakImplHelper1<css::uri::XVndSunStarScriptUrlReference>,
+ private boost::noncopyable
{
public:
UrlReference(OUString const & scheme, OUString const & path):
@@ -281,9 +283,6 @@ public:
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE;
private:
- UrlReference(UrlReference &); // not implemented
- void operator =(UrlReference); // not implemented
-
virtual ~UrlReference() {}
sal_Int32 findParameter(OUString const & key);
@@ -376,8 +375,10 @@ sal_Int32 UrlReference::findParameter(OUString const & key) {
}
}
-class Parser: public cppu::WeakImplHelper2<
- css::lang::XServiceInfo, css::uri::XUriSchemeParser >
+class Parser:
+ public cppu::WeakImplHelper2<
+ css::lang::XServiceInfo, css::uri::XUriSchemeParser>,
+ private boost::noncopyable
{
public:
Parser() {}
@@ -397,9 +398,6 @@ public:
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- Parser(Parser &); // not implemented
- void operator =(Parser); // not implemented
-
virtual ~Parser() {}
};
diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
index f83ccbf5d1ff..8c9ea5b9d01a 100644
--- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
+++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
@@ -20,6 +20,7 @@
#include "stocservices.hxx"
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -44,8 +45,10 @@
namespace {
-class Factory: public cppu::WeakImplHelper2<
- css::lang::XServiceInfo, css::uri::XVndSunStarPkgUrlReferenceFactory >
+class Factory:
+ public cppu::WeakImplHelper2<
+ css::lang::XServiceInfo, css::uri::XVndSunStarPkgUrlReferenceFactory>,
+ private boost::noncopyable
{
public:
explicit Factory(
@@ -67,9 +70,6 @@ public:
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
- Factory(Factory &); // not implemented
- void operator =(Factory); // not implemented
-
virtual ~Factory() {}
css::uno::Reference< css::uno::XComponentContext > m_context;