// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "xmlres.h"
#endif
fnd = wxXmlFindFirst;
else
fnd = filemask;
- while (!!fnd)
+ while (!fnd.empty())
{
// NB: Load() accepts both filenames and URLs (should probably be
// changed to filenames only, but embedded resources currently
#endif
}
}
- else
- {
- // If wxXRC_USE_LOCALE is not set, then the string is already in
- // system's default encoding in ANSI build, so we don't have to
- // do anything special here.
- return str2;
- }
+
+ // If wxXRC_USE_LOCALE is not set, then the string is already in
+ // system's default encoding in ANSI build, so we don't have to
+ // do anything special here.
+ return str2;
}
wxString v = GetParamValue(param);
v.MakeLower();
if (!v) return defaultv;
- else return (v == wxT("1"));
+
+ return (v == wxT("1"));
}
return wxDefaultSize;
}
}
- else return wxSize(sx, sy);
+
+ return wxSize(sx, sy);
}
return defaultv;
}
}
- else return sx;
+
+ return sx;
}
m_node = oldnode;
return sysfont;
}
- else
- {
- m_node = oldnode;
- return wxFont(isize, ifamily, istyle, iweight,
- underlined, facename, enc);
- }
+
+ m_node = oldnode;
+ return wxFont(isize, ifamily, istyle, iweight,
+ underlined, facename, enc);
}