Remove all trailing spaces

No real changes, just clean up sources by removing trailing spaces from
all the non-generated files.

This should hopefully avoid future commits mixing significant changes
with insignificant whitespace ones.
This commit is contained in:
Vadim Zeitlin
2019-01-30 17:28:08 +01:00
parent ae94f4da9c
commit 8fbca5cb70
320 changed files with 1611 additions and 1611 deletions

View File

@@ -27,9 +27,9 @@ enum
However, usually you don't even need to know the precise nature of the
class you're working with but you would just use the wxConfigBase methods.
This allows you to write the same code regardless of whether you're working
with the registry under Windows or text-based config files under Unix.
To make writing the portable code even easier, wxWidgets provides a typedef
wxConfig which is mapped onto the native wxConfigBase implementation on the
with the registry under Windows or text-based config files under Unix.
To make writing the portable code even easier, wxWidgets provides a typedef
wxConfig which is mapped onto the native wxConfigBase implementation on the
given platform: i.e. wxRegConfig under Windows and wxFileConfig otherwise.
See @ref overview_config for a description of all features of this class.
@@ -253,7 +253,7 @@ enum
@library{wxbase}
@category{cfg}
@see wxConfigPathChanger
*/
class wxConfigBase : public wxObject
@@ -353,7 +353,7 @@ public:
Set current path: if the first character is '/', it is the absolute
path, otherwise it is a relative path. '..' is supported. If @a strPath
doesn't exist, it is created.
@see wxConfigPathChanger
*/
virtual void SetPath(const wxString& strPath) = 0;
@@ -889,7 +889,7 @@ public:
@class wxConfigPathChanger
A handy little class which changes the current path in a wxConfig object and restores it in dtor.
Declaring a local variable of this type, it's possible to work in a specific directory
Declaring a local variable of this type, it's possible to work in a specific directory
and ensure that the path is automatically restored when the function returns.
For example:
@@ -902,13 +902,13 @@ public:
wxString str;
if ( !config->Read("SomeString", &str) ) {
wxLogError("Couldn't read SomeString!");
return false;
return false;
// NOTE: without wxConfigPathChanger it would be easy to forget to
// set the old path back into the wxConfig object before this return!
}
// do something useful with SomeString...
return true; // again: wxConfigPathChanger dtor will restore the original wxConfig path
}
@endcode
@@ -923,21 +923,21 @@ public:
/**
Changes the path of the given wxConfigBase object so that the key @a strEntry is accessible
(for read or write).
In other words, the ctor uses wxConfigBase::SetPath() with everything which precedes the
In other words, the ctor uses wxConfigBase::SetPath() with everything which precedes the
last slash of @a strEntry, so that:
@code
wxConfigPathChanger(wxConfigBase::Get(), "/MyProgram/SomeKeyName");
@endcode
@endcode
has the same effect of:
@code
wxConfigPathChanger(wxConfigBase::Get(), "/MyProgram/");
@endcode
@endcode
*/
wxConfigPathChanger(const wxConfigBase *pContainer, const wxString& strEntry);
/**
Restores the path selected, inside the wxConfig object passed to the ctor, to the path which was
Restores the path selected, inside the wxConfig object passed to the ctor, to the path which was
selected when the wxConfigPathChanger ctor was called.
*/
~wxConfigPathChanger();
@@ -949,9 +949,9 @@ public:
const wxString& Name() const;
/**
This method must be called if the original path inside the wxConfig object
(i.e. the current path at the moment of creation of this wxConfigPathChanger object)
could have been deleted, thus preventing wxConfigPathChanger from restoring the not
This method must be called if the original path inside the wxConfig object
(i.e. the current path at the moment of creation of this wxConfigPathChanger object)
could have been deleted, thus preventing wxConfigPathChanger from restoring the not
existing (any more) path.
If the original path doesn't exist any more, the path will be restored to