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

Douglas Mencken dougmencken at gmail.com
Mon Feb 24 03:33:32 PST 2014


 unoidl/source/sourceprovider-parser.y |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8bf34faa1e87a2b7940445c38517177ad238ed32
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Sun Feb 23 17:01:51 2014 -0500

    Yet another one undefined comparison of 'const' and a 'non-const' iterators
    
    Fixes:
        no match for ‘operator!=’ in ‘i != std::vector<_Tp, _Alloc>::rend() [with _Tp = rtl::OUString, _Alloc = std::allocator<rtl::OUString>]()’
    
    Change-Id: I7b4ba07ebe51c73893a3d6b77dcf5681b7638efb
    Signed-off-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y
index 15bb011..dba0b29 100644
--- a/unoidl/source/sourceprovider-parser.y
+++ b/unoidl/source/sourceprovider-parser.y
@@ -261,7 +261,7 @@ unoidl::detail::SourceProviderEntity * findEntity_(
     assert(name != 0);
     OUString n;
     if (!name->startsWith(".", &n)) {
-        for (std::vector<OUString>::const_reverse_iterator i(data->modules.rbegin());
+        for (std::vector<OUString>::reverse_iterator i(data->modules.rbegin());
              i != data->modules.rend(); ++i)
         {
             n = *i + "." + *name;


More information about the Libreoffice-commits mailing list