nodetype(wxListBase *list = (wxListBase *)NULL, \
nodetype *previous = (nodetype *)NULL, \
nodetype *next = (nodetype *)NULL, \
- T *data = NULL, \
+ T *data = (T *)NULL, \
const wxListKey& key = wxListKey()) \
: wxNodeBase(list, previous, next, data, key) { } \
\
T *operator[](size_t index) const \
{ \
nodetype *node = Item(index); \
- return node ? node->GetData() : NULL; \
+ return node ? (T*)(node->GetData()) : (T*)NULL; \
} \
\
nodetype *Append(T *object) \
wxString *str = (wxString *)head->Data();
char buf[100];
- sprintf(buf, "%s: %s\n\r", head->GetKeyString()/*key.string*/, str->GetData());
+ sprintf(buf, "%s: %s\n\r", head->GetKeyString(), str->GetData());
Write(buf, strlen(buf));
head = head->Next();
common/wincmn.cpp \
common/framecmn.cpp \
common/stream.cpp \
+ common/wfstream.cpp \
common/datstrm.cpp \
common/mstream.cpp \
common/zstream.cpp \
common/sckaddr.cpp \
common/sckipc.cpp \
common/protocol.cpp \
- common/ftp.cpp \
common/http.cpp \
+ common/ftp.cpp \
common/url.cpp \
common/tokenzr.cpp \
\
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_minWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_minHeight;
-// gtk_widget_set_usize( m_widget, m_width, m_height );
+ gtk_widget_set_usize( m_widget, m_width, m_height );
// This emulates the new wxMSW behaviour
wxNode *node = wxTheResourceCache->First();
while (node) {
- char *file = node->key.string;
+ wxString str = node->GetKeyString();
+ char *file = WXSTRINGCAST str;
// If file doesn't exist, create it first.
(void)GetResourcePath(nameBuffer, file, TRUE);
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_minWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_minHeight;
-// gtk_widget_set_usize( m_widget, m_width, m_height );
+ gtk_widget_set_usize( m_widget, m_width, m_height );
// This emulates the new wxMSW behaviour
wxNode *node = wxTheResourceCache->First();
while (node) {
- char *file = node->key.string;
+ wxString str = node->GetKeyString();
+ char *file = WXSTRINGCAST str;
// If file doesn't exist, create it first.
(void)GetResourcePath(nameBuffer, file, TRUE);