To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79535
                 Issue #|79535
                 Summary|OOo Build of sal breaks with switch --without-stlport4
               Component|porting
                 Version|680m219
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|dbo
             Reported by|bm





------- Additional comments from [EMAIL PROTECTED] Thu Jul 12 13:30:37 +0000 
2007 -------
Here is the compiler output and the relevant source:

/ooo/chart07/src680-m219/sal/osl/all/debugbase.cxx: In function 'bool
osl_detail_ObjectRegistry_storeAddresses(const char*)':
/ooo/chart07/src680-m219/sal/osl/all/debugbase.cxx:106: error: invalid
initialization of reference of type 'const rtl::OString&' from expression of
type 'const rtl::OUString'

debugbase.cxx:58
typedef std::vector<rtl::OString, rtl::Allocator<rtl::OUString> > OStringVec;

struct StaticDebugBaseAddressFilter
    : rtl::StaticWithInit<OStringVec const, StaticDebugBaseAddressFilter> {
    OStringVec const operator()() const {
        OStringVec vec;
        rtl_uString * pStr = 0;
        rtl::OUString const name(
            RTL_CONSTASCII_USTRINGPARAM("OSL_DEBUGBASE_STORE_ADDRESSES") );
        if (osl_getEnvironment( name.pData, &pStr ) == osl_Process_E_None) {
            rtl::OUString const str(pStr);
            rtl_uString_release(pStr);
            sal_Int32 nIndex = 0;
            do {
                vec.push_back( rtl::OUStringToOString(
                                   str.getToken( 0, ';', nIndex ),
                                   RTL_TEXTENCODING_ASCII_US ) );
            }
            while (nIndex >= 0);
        }
        return vec;
    }
};

debugbase.cxx:102
    OStringVec const& rVec = StaticDebugBaseAddressFilter::get();
    if (rVec.empty())
        return false;
    // check for "all":
    rtl::OString const& rFirst = rVec[0];  // this is line 106


Allocator of OUString or rahter OString? Maybe a typo. See patch for a working
fix from thb.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to