On 12-04-21 10:50 AM, cvs@abisource.com wrote:
>
> Modified: abiword/trunk/src/wp/ap/xp/ap_Dialog_RDFEditor.cpp
> ===================================================================
> --- abiword/trunk/src/wp/ap/xp/ap_Dialog_RDFEditor.cpp	2012-04-21 16:14:54 UTC (rev 30837)
> +++ abiword/trunk/src/wp/ap/xp/ap_Dialog_RDFEditor.cpp	2012-04-21 17:50:34 UTC (rev 30838)
> @@ -101,12 +101,13 @@
>   void
>   AP_Dialog_RDFEditor::statusIsTripleCount()
>   {
> -    stringstream ss;
> +    UT_String ss;
UT_String is deprecated too. Even more so. No exception.
>       const XAP_StringSet *pSS = m_pApp->getStringSet();
> -    UT_UTF8String str;
> +    std::string str;
>       pSS->getValueUTF8(AP_STRING_ID_DLG_RDF_Editor_Status, str);
> -    ss<<  str.utf8_str()<<  m_count;
> -    setStatus(ss.str());
> +    UT_String_sprintf(ss, str.c_str(), m_count);
There is UT_std_string_sprintf()
> +    str = ss.c_str();
> +    setStatus(str);
>   }
Cheers,
Hub
Received on Sat Apr 21 21:07:43 2012
This archive was generated by hypermail 2.1.8 : Sat Apr 21 2012 - 21:07:43 CEST