compilation fix: only one wxInitialize form may have default argument values. It doesn't make sense to specify only argc>0, so removed default values and added default wxInitializer ctor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4d18ddc7bf
commit
d368860323
@ -61,9 +61,10 @@ extern int WXDLLIMPEXP_BASE wxEntry(int& argc, char **argv);
|
||||
|
||||
// initialize the library (may be called as many times as needed, but each
|
||||
// call to wxInitialize() must be matched by wxUninitialize())
|
||||
extern bool WXDLLIMPEXP_BASE wxInitialize(int argc = 0, wxChar **argv = NULL);
|
||||
extern bool WXDLLIMPEXP_BASE wxInitialize();
|
||||
extern bool WXDLLIMPEXP_BASE wxInitialize(int argc, wxChar **argv);
|
||||
#if wxUSE_UNICODE
|
||||
extern bool WXDLLIMPEXP_BASE wxInitialize(int argc = 0, char **argv = NULL);
|
||||
extern bool WXDLLIMPEXP_BASE wxInitialize(int argc, char **argv);
|
||||
#endif
|
||||
|
||||
// clean up -- the library can't be used any more after the last call to
|
||||
@ -76,13 +77,18 @@ class WXDLLIMPEXP_BASE wxInitializer
|
||||
{
|
||||
public:
|
||||
// initialize the library
|
||||
wxInitializer(int argc = 0, wxChar **argv = NULL)
|
||||
wxInitializer()
|
||||
{
|
||||
m_ok = wxInitialize();
|
||||
}
|
||||
|
||||
wxInitializer(int argc, wxChar **argv)
|
||||
{
|
||||
m_ok = wxInitialize(argc, argv);
|
||||
}
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
wxInitializer(int argc = 0, char **argv = NULL)
|
||||
wxInitializer(int argc, char **argv)
|
||||
{
|
||||
m_ok = wxInitialize(argc, argv);
|
||||
}
|
||||
|
@ -465,6 +465,11 @@ int wxEntry(int& argc, char **argv)
|
||||
// wxInitialize/wxUninitialize
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxInitialize()
|
||||
{
|
||||
return wxInitialize(0, (wxChar**)NULL);
|
||||
}
|
||||
|
||||
bool wxInitialize(int argc, wxChar **argv)
|
||||
{
|
||||
wxCRIT_SECT_LOCKER(lockInit, gs_initData.csInit);
|
||||
|
Loading…
Reference in New Issue
Block a user