if ( appName.IsEmpty() )
{
- wxCHECK_RET( wxTheApp, _T("No application name in wxRegConfig ctor!") );
+ wxCHECK_RET( wxTheApp, T("No application name in wxRegConfig ctor!") );
strRoot << wxTheApp->GetAppName();
}
else
if ( IsImmutable(path.Name()) ) {
if ( TryGetValue(m_keyGlobal, path.Name(), *pStr) ) {
if ( m_keyLocal.HasValue(path.Name()) ) {
- wxLogWarning(_T("User value for immutable key '%s' ignored."),
+ wxLogWarning(T("User value for immutable key '%s' ignored."),
path.Name().c_str());
}
*pStr = wxConfigBase::ExpandEnvVars(*pStr);
if ( IsImmutable(path.Name()) ) {
if ( TryGetValue(m_keyGlobal, path.Name(), *pStr) ) {
if ( m_keyLocal.HasValue(path.Name()) ) {
- wxLogWarning(_T("User value for immutable key '%s' ignored."),
+ wxLogWarning(T("User value for immutable key '%s' ignored."),
path.Name().c_str());
}
if ( IsImmutable(path.Name()) ) {
if ( TryGetValue(m_keyGlobal, path.Name(), plResult) ) {
if ( m_keyLocal.HasValue(path.Name()) ) {
- wxLogWarning(_T("User value for immutable key '%s' ignored."),
+ wxLogWarning(T("User value for immutable key '%s' ignored."),
path.Name().c_str());
}
wxConfigPathChanger path(this, key);
if ( IsImmutable(path.Name()) ) {
- wxLogError(_T("Can't change immutable entry '%s'."), path.Name().c_str());
+ wxLogError(T("Can't change immutable entry '%s'."), path.Name().c_str());
return FALSE;
}
wxConfigPathChanger path(this, key);
if ( IsImmutable(path.Name()) ) {
- wxLogError(_T("Can't change immutable entry '%s'."), path.Name().c_str());
+ wxLogError(T("Can't change immutable entry '%s'."), path.Name().c_str());
return FALSE;
}
// TODO there is no way to rename a registry key - we must do a deep copy
// ourselves
- wxFAIL_MSG(_T("Registry key renaming not implemented"));
+ wxFAIL_MSG(T("Registry key renaming not implemented"));
return FALSE;
}
if ( !m_keyLocal.DeleteValue(path.Name()) )
return FALSE;
- if ( !m_keyLocal.HasSubkeys() ) {
+ if ( m_keyLocal.IsEmpty() ) {
wxString strKey = GetPath().AfterLast(wxCONFIG_PATH_SEPARATOR);
SetPath(".."); // changes m_keyLocal
return m_keyLocal.DeleteKey(strKey);