Use doubled backslashes in examples in wxFileName documentation

Fix syntax of C strings in the examples.

Closes #22311.
This commit is contained in:
PB 2022-04-15 20:44:51 +02:00 committed by Vadim Zeitlin
parent a47382f95d
commit 92deb92e29

View file

@ -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