X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1408104d04fdea106c8ec288866c4143078ae71b..483c6690e98d6ad41b37f02d29b63a26b68a07c0:/src/generic/prop.cpp diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index 360c7bd864..3aa479d8e4 100644 --- a/src/generic/prop.cpp +++ b/src/generic/prop.cpp @@ -328,9 +328,7 @@ wxPropertyValue *wxPropertyValue::NewCopy(void) const return new wxPropertyValue(m_value.stringPtr); case wxPropertyValueNull: -#ifdef __X__ - cerr << "Should never get here!\n"; -#endif + wxFAIL_MSG( _T("Should never get here!\n" ) ); break; } return NULL; @@ -371,12 +369,20 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom) case wxPropertyValueStringPtr: { wxChar** s = copyFrom.StringValuePtr(); + +#if 0 // what is this? are you trying to assign a bool or a string? VA can't figure it out.. -#if defined(__VISAGECPP__) +#if defined(__VISAGECPP__) || defined( __VISUALC__ ) (*this) = s; #else (*this) = s != 0; #endif +#endif // if 0 + + // TODO: check if this is right. MB + // + (*this) = s; + return ; } @@ -395,9 +401,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom) return; } case wxPropertyValueNull: -#ifdef __X__ - cerr << "Should never get here!\n"; -#endif + wxFAIL_MSG( _T("Should never get here!\n" ) ); break; } }