diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-29 10:37:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:16 +0000 |
commit | b7859cdc9bfc90878a6d17136920370ef6426372 (patch) | |
tree | e104982075478acb014cf911678abd28209dc2d9 /idl/inc/bastype.hxx | |
parent | f80d46233150d36183ec3e03708f9f6290c8c339 (diff) |
don't inherit from ByteString
Diffstat (limited to 'idl/inc/bastype.hxx')
-rw-r--r-- | idl/inc/bastype.hxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index d52a38b9a81e..0231bd7357f8 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -164,11 +164,11 @@ public: SvIdentifier() { } - void setIdentifier(const ByteString & rStr) + void setString(const ByteString & rStr) { m_aStr = rStr; } - const ByteString& getIdentifier() const + const ByteString& getString() const { return m_aStr; } @@ -204,13 +204,15 @@ public: }; -class SvString : public ByteString +class SvString { +private: + ByteString m_aStr; public: - SvString(){}; - SvString & operator = ( const ByteString & rStr ) - { ByteString::operator =( rStr ); return *this; } - sal_Bool IsSet() const { return Len() != 0; } + SvString() {} + void setString(const ByteString &rStr) { m_aStr = rStr; } + const ByteString& getString() const { return m_aStr; } + sal_Bool IsSet() const { return m_aStr.Len() != 0; } friend SvStream& operator << (SvStream &, const SvString &); friend SvStream& operator >> (SvStream &, SvString &); |