diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-05 17:03:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-11 09:45:29 +0200 |
commit | bde5457dd634c70cef02565890e08e8669e1a437 (patch) | |
tree | 8547848d948c4867802955f0531c4e212ab77bb2 /include/editeng | |
parent | 19c8de15dfc49b815597d7f2b05e072de2f8dec5 (diff) |
convert SvStringsISortDtor from OUString* to OUString
There is no point in storing pointers to a reference counted value
type.
It complicates memory management without gaining us anything.
Change-Id: I756dfad740de3203d88ba48d0ebdfb8671b41cfb
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/svxacorr.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 5c2bd776c777..42b42c5efbb3 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -46,17 +46,15 @@ class Window; struct CompareSvStringsISortDtor { - bool operator()( OUString* const& lhs, OUString* const& rhs ) const + bool operator()( OUString const& lhs, OUString const& rhs ) const { - return lhs->compareToIgnoreAsciiCase( *rhs ) < 0; + return lhs.compareToIgnoreAsciiCase( rhs ) < 0; } }; class SvStringsISortDtor - : public o3tl::sorted_vector<OUString*, CompareSvStringsISortDtor> + : public o3tl::sorted_vector<OUString, CompareSvStringsISortDtor> { -public: - ~SvStringsISortDtor() { DeleteAndDestroyAll(); } }; // Auto correct flags |