From 574ddaba5315816a5629550a0a12f9c694b79370 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Fri, 31 Aug 2012 14:40:14 +0200 Subject: Make Regexpr class safer Make copy constructor and copy operator private Change-Id: Ifdaff6d74bebb0406432d470c84d221f2c06ba94 Reviewed-on: https://gerrit.libreoffice.org/519 Reviewed-by: Andras Timar Tested-by: Andras Timar --- regexp/inc/regexp/reclass.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'regexp') diff --git a/regexp/inc/regexp/reclass.hxx b/regexp/inc/regexp/reclass.hxx index f61112dbe58b..4be52bbe6503 100644 --- a/regexp/inc/regexp/reclass.hxx +++ b/regexp/inc/regexp/reclass.hxx @@ -357,6 +357,9 @@ class REGEXP_DLLPUBLIC Regexpr sal_Bool iswordend(const sal_Unicode *d, sal_Unicode *string, sal_Int32 ssize); void set_list_bit(sal_Unicode c, sal_Unicode *b); + Regexpr(const Regexpr&); + Regexpr& operator=(const Regexpr&); + public: // constructors Regexpr( const ::com::sun::star::util::SearchOptions & rOptions, -- cgit v1.2.3