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


Hi,

i have a build break building master: 190a1394c2dd2aa338559c99a23ec3c62d29a2eb.

[...]
[CXX] sw/source/filter/html/wrthtml.cxx
[CXX] sw/source/filter/writer/writer.cxx
D:/sources/libo-core/sw/source/filter/html/svxcss1.cxx(3166): error C2065: "CSS1PropEntryCompare":
nicht deklarierter Bezeichner
make[1]: *** [D:/sources/libo-core/solenv/gbuild/LinkTarget.mk:291: D:/sources/libo-core/workdir/CxxObject/sw/source/filter/html/svxcss1.o] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:286: build] Error 2

line 3166 assertion fails:
assert( std::is_sorted( std::begin(aCSS1PropFnTab), std::end(aCSS1PropFnTab), CSS1PropEntryCompare 
) );

i build with "--enable-debug", but do not use "--enable-dbgutil"

code has changed a few hours ago
https://gerrit.libreoffice.org/gitweb?p=core.git;a=commitdiff;h=4ba5b003b594f9eb6c9b185208bdb72aef8273d0

Regards
Oliver

--

#ifdef DBG_UTIL
static bool CSS1PropEntryCompare( const CSS1PropEntry &lhs, const CSS1PropEntry &rhs)
{
    return strcmp(lhs.pName, rhs.pName) < 0;
}
#endif

void SvxCSS1Parser::ParseProperty( const OUString& rProperty,
                                   const CSS1Expression *pExpr )
{
    OSL_ENSURE( pItemSet, "DeclarationParsed() without ItemSet" );

    static bool bSortedPropFns = false;

    if( !bSortedPropFns )
    {
        assert( std::is_sorted( std::begin(aCSS1PropFnTab), std::end(aCSS1PropFnTab),
                                CSS1PropEntryCompare ) );
        bSortedPropFns = true;
    }

    auto it = std::lower_bound( std::begin(aCSS1PropFnTab), std::end(aCSS1PropFnTab), rProperty,
                                CSS1PropEntryFindCompare );
    if( it != std::end(aCSS1PropFnTab) && !CSS1PropEntryFindCompare(*it,rProperty)  )
    {
        it->pFunc( pExpr, *pItemSet, *pPropInfo, *this );
    }
}

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.