X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71cbe687e30622f9db3e3108b3abcc2312472285..4df78dc36e933fb1c3aa7c9d7ae2757a898ae05c:/src/generic/prop.cpp diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index 44827dcf22..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,7 +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__) || defined( __VISUALC__ ) + (*this) = s; +#else (*this) = s != 0; +#endif +#endif // if 0 + + // TODO: check if this is right. MB + // + (*this) = s; + return ; } @@ -390,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; } }