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



The last commit in writer has introduced a bug which prevents a build
from completing:

[...]
/home/ftigeot/Projects/LibreOffice/bootstrap/clone/writer/sw/source/ui/index/cnttab.cxx: In member 
function 'void SwTokenWindow::RemoveControl(SwTOXButton*, sal_Bool)':
/home/ftigeot/Projects/LibreOffice/bootstrap/clone/writer/sw/source/ui/index/cnttab.cxx:3212: 
error: no match for 'operator!=' in 'it != std::vector<_Tp, _Alloc>::rbegin() [with _Tp = Control*, 
_Alloc = std::allocator<Control*>]()'
/home/ftigeot/Projects/LibreOffice/bootstrap/solver/330/unxdflyx3.pro/inc/tools/fract.hxx:139: 
note: candidates are: bool operator!=(const Fraction&, const Fraction&)
dmake:  Error code 1, while making '../../../unxdflyx3.pro/slo/cnttab.obj'


Code around line 3212 of cnttab.cxx looks like:

    // the two neighbours of the box must be merged
    // the properties of the right one will be lost
    OSL_ENSURE(it != aControlList.begin() && it != aControlList.rbegin(),
        "Button at first or last position?");

I believe there should be a cast to const somewhere for aControlList.rbegin()
but I am no C++ programmer and cannot write a fix for this expression.

-- 
Francois Tigeot

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.