Author: aschnell
Date: Wed Aug 20 10:57:20 2008
New Revision: 50224
URL: http://svn.opensuse.org/viewcvs/yast?rev=50224&view=rev
Log:
- disallow copying of Regex
Modified:
trunk/storage/libstorage/src/Regex.h
trunk/storage/libstorage/src/StorageTypes.h
Modified: trunk/storage/libstorage/src/Regex.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Regex.h?rev=50224&r1=50223&r2=50224&view=diff
==============================================================================
--- trunk/storage/libstorage/src/Regex.h (original)
+++ trunk/storage/libstorage/src/Regex.h Wed Aug 20 10:57:20 2008
@@ -9,13 +9,14 @@
#include
#include <string>
+#include
using std::string;
namespace storage
{
-class Regex
+class Regex : boost::noncopyable
{
public:
Modified: trunk/storage/libstorage/src/StorageTypes.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/StorageTypes.h?rev=50224&r1=50223&r2=50224&view=diff
==============================================================================
--- trunk/storage/libstorage/src/StorageTypes.h (original)
+++ trunk/storage/libstorage/src/StorageTypes.h Wed Aug 20 10:57:20 2008
@@ -132,21 +132,21 @@
struct match_string
{
- match_string( const string& t ) : r(t) {};
+ match_string( const string& t ) : r(t) {}
bool operator()(const string&s) { return( r.match( s )); }
- Regex r;
+ const Regex& r;
};
struct find_begin
{
- find_begin( const string& t ) : val(t) {};
+ find_begin( const string& t ) : val(t) {}
bool operator()(const string&s) { return( s.find(val)==0 ); }
const string& val;
};
struct find_any
{
- find_any( const string& t ) : val(t) {};
+ find_any( const string& t ) : val(t) {}
bool operator()(const string&s) { return( s.find(val)!=string::npos ); }
const string& val;
};
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org