//@{
/// number of elements in the array
size_t Count() const { return m_uiCount; }
+ size_t GetCount() const { return m_uiCount; }
/// is it empty?
bool IsEmpty() const { return m_uiCount == 0; }
//@}
~wxList(void);
inline int Number(void) const { return n; }
+ inline int GetCount(void) const { return n; }
// Append to end of list
wxNode *Append(wxObject *object);
m_leftWindow2 = win;
}
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
Close(TRUE);
}
-void MyFrame::OnAbout(wxCommandEvent& event)
+void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
(void)wxMessageBox("wxWindows 2.0 Sash Demo\nAuthor: Julian Smart (c) 1998", "About Sash Demo");
}
-void MyFrame::OnToggleWindow(wxCommandEvent& event)
+void MyFrame::OnToggleWindow(wxCommandEvent& WXUNUSED(event))
{
if (m_leftWindow1->IsShown())
{
GetClientWindow()->Refresh();
}
-void MyFrame::OnNewWindow(wxCommandEvent& event)
+void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event))
{
// Make another frame, containing a canvas
MyChild *subframe = new MyChild(frame, "Canvas Frame", wxPoint(10, 10), wxSize(300, 300),
return TRUE;
}
-void MyFrame::OnSize(wxSizeEvent& event)
+void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
{
wxLayoutAlgorithm layout;
layout.LayoutMDIFrame(this);
@cd $(WXBASEDIR)/lib/$(OS) ; \
rm -f $(libdir)/$(STATIC_LIBRARY) ; \
$(INSTALL_DATA) $(STATIC_LIBRARY) $(libdir)/$(STATIC_LIBRARY)
- @if test $(WXBASEDIR)/lib/$(OS)/$(SHARED_LIBRARY) ; then \
+ @if test -f $(WXBASEDIR)/lib/$(OS)/$(SHARED_LIBRARY) ; then \
echo " Copying shared library" ; \
cd $(WXBASEDIR)/lib/$(OS) ; \
rm -f $(libdir)/lib$(LIB_TARGET).so* ; \
// Not all args will always be used by derived classes, but
// including them all in each class ensures compatibility.
wxConfigBase::wxConfigBase(const wxString& appName, const wxString& vendorName,
- const wxString& localFilename, const wxString& globalFilename, long style):
+ const wxString& WXUNUSED(localFilename), const wxString& WXUNUSED(globalFilename), long style):
m_appName(appName), m_vendorName(vendorName), m_style(style)
{
m_bExpandEnvVars = TRUE; m_bRecordDefaults = FALSE;
bool wxFile::Access(const char *name, OpenMode mode)
{
- int how;
+ int how = 0;
switch ( mode ) {
case read:
return m_pLogFrame;
}
-void wxLogWindow::OnFrameCreate(wxFrame *frame)
+void wxLogWindow::OnFrameCreate(wxFrame *WXUNUSED(frame))
{
}
-void wxLogWindow::OnFrameDelete(wxFrame *frame)
+void wxLogWindow::OnFrameDelete(wxFrame *WXUNUSED(frame))
{
m_pLogFrame = (wxLogFrame *) NULL;
}
field1->SetType(type);
field1->SetSize(len);
- SQLBindCol(hStmt, i+1, SQL_C_BINARY, field1->GetData(), field1->GetSize(), &trash);
+ SQLBindCol(hStmt, i+1, SQL_C_BINARY, (unsigned char*)field1->GetData(), field1->GetSize(), &trash);
}
switch (type) {
int yPos = 40;
#if defined(__WXGTK__) || defined (__WXMOTIF__)
- (void) new wxStaticText(this, -1, _("Printer Command: "), wxPoint(5, yPos));
- wxTextCtrl *text_prt = new wxTextCtrl(this, wxID_PRINTER_COMMAND, wxThePrintSetupData->GetPrinterCommand(), wxPoint(100, yPos), wxSize(100, -1));
+ (void) new wxStaticText( this, -1, _("Printer Command: "),
+ wxPoint(5, yPos) );
+ (void) new wxTextCtrl( this, wxID_PRINTER_COMMAND, wxThePrintSetupData->GetPrinterCommand(),
+ wxPoint(100, yPos), wxSize(100, -1) );
- (void) new wxStaticText(this, -1, _("Printer Options: "), wxPoint(210, yPos));
- wxTextCtrl *text0 = new wxTextCtrl(this, wxID_PRINTER_OPTIONS, wxThePrintSetupData->GetPrinterOptions(), wxPoint(305, yPos), wxSize(150, -1));
+ (void) new wxStaticText( this, -1, _("Printer Options: "),
+ wxPoint(210, yPos) );
+ (void) new wxTextCtrl( this, wxID_PRINTER_OPTIONS, wxThePrintSetupData->GetPrinterOptions(),
+ wxPoint(305, yPos), wxSize(150, -1) );
yPos += 40;
#endif
add_expr(expr);
}
-void syntax_error(char *s)
+void syntax_error(char *WXUNUSED(s))
{
if (currentwxExprErrorHandler)
(void)(*(currentwxExprErrorHandler))(WXEXPR_ERROR_SYNTAX, "syntax error");