diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-28 21:27:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:07 +0100 |
commit | 11de7bc8c8091a434b046cb8377b5d9d06ca97a5 (patch) | |
tree | eca8801eb186340413c24cb1024787e33a319d14 /tools/inc | |
parent | 3be40d96b7a14fb515f9f1b477cabcf96e6d469c (diff) |
deconfuse this api somewhat
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/tools/wldcrd.hxx | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/tools/inc/tools/wldcrd.hxx b/tools/inc/tools/wldcrd.hxx index 3be67481c623..bf741741579c 100644 --- a/tools/inc/tools/wldcrd.hxx +++ b/tools/inc/tools/wldcrd.hxx @@ -29,7 +29,6 @@ #define _WLDCRD_HXX #include "tools/toolsdllapi.h" -#include <tools/solar.h> #include <tools/string.hxx> #include <osl/thread.h> @@ -63,30 +62,14 @@ public: return rtl::OStringToOUString(aWildString, osl_getThreadTextEncoding()); } - sal_Bool Matches( const String& rStr ) const; - - sal_Bool operator ==( const String& rString ) const - { return Matches( rString ); } - sal_Bool operator !=( const String& rString ) const - { return !( Matches( rString ) ); } + void setGlob(const rtl::OUString& rString) + { + aWildString = rtl::OUStringToOString(rString, osl_getThreadTextEncoding()); + } - WildCard& operator =( const String& rString ); - WildCard& operator =( const WildCard& rWildCard ); + sal_Bool Matches( const String& rStr ) const; }; -inline WildCard& WildCard::operator=( const String& rString ) -{ - aWildString = rtl::OUStringToOString(rString, osl_getThreadTextEncoding()); - return *this; -} - -inline WildCard& WildCard::operator=( const WildCard& rWildCard ) -{ - aWildString = rWildCard.aWildString; - cSepSymbol = rWildCard.cSepSymbol; - return *this; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |