[Libreoffice-commits] core.git: sc/source

Luboš Luňák l.lunak at suse.cz
Fri Apr 19 01:40:49 PDT 2013


 sc/source/core/data/dpresfilter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 06d86e36a3a192484deee8da08e28509827a2272
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Fri Apr 19 10:39:49 2013 +0200

    remove needless explicit type for swap<>()
    
    MSVC gives:
    C:/PROGRA~2/MICROS~2.0/VC/include\vector(1544) : error C2825: '_Alloc': must be a class or namespace when followed by '::'
            C:/PROGRA~2/MICROS~2.0/VC/include\vector(1589) : see reference to class template instantiation 'std::_Vb_iter_base<_Alloc>' being compiled
            with
            [
                _Alloc=ScDPResultFilterSet::MemberNode *
            ]
            C:/cygwin/home/tinderbox/master-build/sc/source/core/data/dpresfilter.cxx(147) : see reference to class template instantiation 'std::_Vb_reference<_Alloc>' being compiled
            with
            [
                _Alloc=ScDPResultFilterSet::MemberNode *
            ]
    
    Change-Id: I394f861aa29a8b6e43ea92447215a7868955555a

diff --git a/sc/source/core/data/dpresfilter.cxx b/sc/source/core/data/dpresfilter.cxx
index 9a23233..81eb3d1 100644
--- a/sc/source/core/data/dpresfilter.cxx
+++ b/sc/source/core/data/dpresfilter.cxx
@@ -144,7 +144,7 @@ void ScDPResultFilterSet::add(
 void ScDPResultFilterSet::swap(ScDPResultFilterSet& rOther)
 {
     std::swap(maPrimaryDimName, rOther.maPrimaryDimName);
-    std::swap<MemberNode*>(mpRoot, rOther.mpRoot);
+    std::swap(mpRoot, rOther.mpRoot);
 }
 
 bool ScDPResultFilterSet::empty() const


More information about the Libreoffice-commits mailing list