Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Sun, 2013-01-20 at 09:43 -0800, julien2412 wrote:
Hello,

Cppcheck reported this:
shell/qa/zip/testimpl/testzipimpl.cxx
     52 bool TestZipImpl::test_directory()
     53 {
     54     ZipFile::DirectoryPtr_t contents = zipFile.GetDirectory();
     55     vector<string> &stringVector = *contents.get();
     56     sort(stringVector.begin(), stringVector.end());
     57     return expectedContents == expectedContents;
     58 }

Shouldn't it be
return expectedContents == stringVector;

Yeah, it surely must have been intended to be as you say. You might as
well make that change. As an aside that test isn't built or run.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.