summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9ffb659)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45624
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
CPPUNIT_ASSERT( s2 == "(FooBar)" );
s2.Printf(_T("value=%s;"), s.wc_str());
CPPUNIT_ASSERT( s2 == "value=FooBar;" );
CPPUNIT_ASSERT( s2 == "(FooBar)" );
s2.Printf(_T("value=%s;"), s.wc_str());
CPPUNIT_ASSERT( s2 == "value=FooBar;" );
+
+ // this tests correct passing of wxCStrData constructed from string
+ // literal:
+ bool cond = true;
+ s2.Printf(_T("foo %s"), !cond ? s.c_str() : _T("bar"));