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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user