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

Douglas Mencken dougmencken at gmail.com
Fri Dec 20 12:23:40 PST 2013


 vcl/source/gdi/impimagetree.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8cdb1466d6f93bb93e33dc1ef6d5083b005bd73f
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Fri Dec 20 07:40:19 2013 -0500

    Can't use const_reverse_iterator here.
    
    Fix build error:
        no match for ‘operator!=’ in ‘it != std::vector<_Tp, _Alloc>::rend()
        [with _Tp = rtl::OUString, _Alloc = std::allocator<rtl::OUString>]()’
    
    Change-Id: I4d20a68259163303ce7f14014c939cc7dbdf2784
    Reviewed-on: https://gerrit.libreoffice.org/7145
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 708f3c2..e6722c6 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -197,7 +197,7 @@ bool ImplImageTree::doLoadImage(
         if (pos != -1) {
             // find() uses a reverse iterator, so push in reverse order.
             std::vector< OUString > aFallbacks( Application::GetSettings().GetUILanguageTag().getFallbackStrings( true));
-            for (std::vector< OUString >::const_reverse_iterator it( aFallbacks.rbegin());
+            for (std::vector< OUString >::reverse_iterator it( aFallbacks.rbegin());
                     it != aFallbacks.rend(); ++it)
             {
                 paths.push_back( getRealImageName( createPath(name, pos, *it) ) );


More information about the Libreoffice-commits mailing list