Use doubled backslashes in examples in wxFileName documentation
Fix syntax of C strings in the examples. Closes #22311.
This commit is contained in:
parent
a47382f95d
commit
92deb92e29
1 changed files with 2 additions and 2 deletions
|
|
@ -169,14 +169,14 @@ wxULongLong wxInvalidSize;
|
|||
directory. Instead initialize the wxFileName instance like this:
|
||||
|
||||
@code
|
||||
wxFileName dirname( "C:\mydir", "" );
|
||||
wxFileName dirname( "C:\\mydir", "" );
|
||||
MyMethod( dirname.GetPath() );
|
||||
@endcode
|
||||
|
||||
The same can be done using the static method wxFileName::DirName():
|
||||
|
||||
@code
|
||||
wxFileName dirname = wxFileName::DirName( "C:\mydir" );
|
||||
wxFileName dirname = wxFileName::DirName( "C:\\mydir" );
|
||||
MyMethod( dirname.GetPath() );
|
||||
@endcode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue