]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
refactoring in preparation for further changes: moved data in a private struct, let...
[wxWidgets.git] / src / common / fileconf.cpp
index 4e44795799c77b0517df63c511d0f7621f05b21e..c84e60de072a10df13cec44585b976d774d9dfa3 100644 (file)
@@ -1351,8 +1351,11 @@ wxFileConfigGroup::~wxFileConfigGroup()
 
 void wxFileConfigGroup::SetLine(wxFileConfigLineList *pLine)
 {
-    // shouldn't be called twice unless we are resetting the line
-    wxASSERT( m_pLine == 0 || pLine == 0 );
+    // for a normal (i.e. not root) group this method shouldn't be called twice
+    // unless we are resetting the line
+    wxASSERT_MSG( !m_pParent || !m_pLine || !pLine,
+                   _T("changing line for a non-root group?") );
+
     m_pLine = pLine;
 }