diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-12 16:14:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-13 15:18:06 +0200 |
commit | f73284fb864699716b3a52faf2ad39bc8e48c3cc (patch) | |
tree | 4b7376fceed882c9b069a3708292c5ac658a512f /sc/source/core | |
parent | 5493402fb37a1def960c93f7c31aff36a5ab5f9e (diff) |
new loplugin ptrvector - find bad comparison of container<unique_ptr>
Change-Id: Idb18ae1ca2f7c644680703dc3b7dd3cd6000e040
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 61aee695de72..abcd231f7470 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -23,6 +23,7 @@ #include <svl/zforlist.hxx> #include <rtl/math.hxx> #include <unotools/collatorwrapper.hxx> +#include <comphelper/stl_types.hxx> #include <com/sun/star/sheet/ConditionOperator2.hpp> @@ -1831,7 +1832,7 @@ bool ScConditionalFormat::EqualEntries( const ScConditionalFormat& r ) const //TODO: Test for same entries in reverse order? for (size_t i=0; i<size(); i++) - if ( ! (maEntries == r.maEntries ) ) + if ( ! ::comphelper::ContainerUniquePtrEquals(maEntries, r.maEntries) ) return false; // right now don't check for same range |