Applied patch #845402 ("RichEdit sample fixing and cleaning"); In addition made compilation with MSVC (nearly) warning free+some more cleaning up.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2003-11-20 17:43:57 +00:00
parent 6c3b4aae47
commit 62a1177692
8 changed files with 3286 additions and 2953 deletions

View File

@@ -136,7 +136,7 @@ public:
deleted by list. See the constructor for more details.
@param ownsflag if true, list will own entries
*/
void ownsObjects(bool ownsflag = true)
void ownsObjects(bool ownsflag)
{ ownsEntries = ownsflag; }
/** Query whether list owns entries.
@@ -236,7 +236,10 @@ protected:
param iterator i
*/
inline void deleteContent(iterator i)
{ if(ownsEntries) delete *i; }
{
iterator *i_ptr = &i;
if(ownsEntries) delete i_ptr;
}
private: