Refactor wxSecretValue creation

No real changes, just add a new platform-specific NewImpl() method instead of
making wxSecretValue ctor itself platform-specific.

This makes adding other ctors for this class simpler.
This commit is contained in:
Vadim Zeitlin
2016-06-04 18:46:23 +02:00
parent 675d9d779d
commit 1de80a72d9
4 changed files with 17 additions and 7 deletions

View File

@@ -251,9 +251,10 @@ const char* wxSecretStoreLibSecretImpl::FIELD_USER = "user";
// LibSecret-specific implementation of common methods
// ============================================================================
wxSecretValue::wxSecretValue(size_t size, const void *data)
: m_impl(new wxSecretValueLibSecretImpl(size, data))
/* static */
wxSecretValueImpl* wxSecretValue::NewImpl(size_t size, const void *data)
{
return new wxSecretValueLibSecretImpl(size, data);
}
/* static */