// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "misc.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#endif
#ifndef WX_PRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
#if wxUSE_PROLOGIO
-#include <wx/deprecated/wxexpr.h>
+#include "wx/deprecated/wxexpr.h"
#endif
-#include <wx/types.h>
+#include "wx/types.h"
#ifdef new
#undef new
i ++;
}
- delete widths;
+ delete[] widths;
}
// Centre a list of strings in the given box
wxString oldBuffer(buffer);
wxString s = node->GetData();
- if (s.IsEmpty())
+ if (s.empty())
{
// FORCE NEW LINE
if (buffer.Length() > 0)
hex.Mid(0,2).ToLong(&r, 16);
hex.Mid(2,2).ToLong(&g, 16);
hex.Mid(4,2).ToLong(&b, 16);
- return wxColour(r, g, b);
+ return wxColour((unsigned char)r,
+ (unsigned char)g,
+ (unsigned char)b);
}
else
- return wxColour(0,0,0);
+ return *wxBLACK;
}
// RGB to 3-digit hex