Removed some unused parameter warnings; compile error in dialup.cpp corrected;

some commits are redundant (sorry)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-10-04 15:07:20 +00:00
parent c5342938e2
commit 5e0201eaa1
29 changed files with 64 additions and 42 deletions

View File

@@ -20,6 +20,12 @@ makefile.unx.in
distrib/msw/*.rsp
distrib/msw/*.bat
distrib/msw/tardist
distrib/msw/tmake/*.t
distrib/msw/tmake/Makefile
distrib/msw/tmake/filelist.txt
distrib/msw/tmake/makeall.bat
distrib/msw/tmake/makeall.sh
distrib/msw/tmake/wxwin.pro
distrib/gtk/*
locale/*.po
@@ -37,6 +43,7 @@ docs/bugs.txt
docs/*.htm
docs/html/*.htm
docs/html/*.gif
docs/html/*.png
src/*.inc
src/mkdir
@@ -66,6 +73,7 @@ src/html/*.h
src/html/bitmaps/*.xpm
src/unix/*.cpp
src/unix/*.c
src/png/*.c
src/png/*.h
@@ -97,6 +105,7 @@ include/wx/protocol/*.h
include/wx/wx_setup.vms
include/wx/common/*.h
include/wx/generic/*.h
include/wx/generic/*.xpm
include/wx/unix/*.h
include/wx/html/*.h
include/wx/html/msw/*.bmp

View File

@@ -1,3 +1,4 @@
utils/glcanvas/Makefile.in
utils/glcanvas/docs/*.*
utils/glcanvas/win/*.cpp
utils/glcanvas/win/*.h

View File

@@ -1,3 +1,5 @@
configure
distrib/gtk/copy_src
distrib/gtk/README.txt
distrib/gtk/Setup
@@ -8,6 +10,7 @@ docs/gtk/COPYING.LIB
docs/gtk/makewxgtk
include/wx/gtk/*.h
include/wx/gtk/*.xpm
include/install-sh
include/wx/install-sh

View File

@@ -1,3 +1,4 @@
Makefile.in
src/Makefile
locale/Makefile
samples/Makefile.in

View File

@@ -5,7 +5,6 @@ docs/wine/COPYING.LIB
distrib/msw/*.rsp
distrib/msw/*.bat
distrib/msw/tmake/*.t
tools/gettext/xgettext.exe
tools/gettext/msgfmt.exe

View File

@@ -1,3 +1,4 @@
utils/ogl/Makefile.in
utils/ogl/Makefile
utils/ogl/src/*.cpp

View File

@@ -12,6 +12,10 @@
#ifndef _WX_NET_H
#define _WX_NET_H
#ifdef __GNUG__
#pragma interface "dialup.h"
#endif
#if wxUSE_DIALUP_MANAGER
// ----------------------------------------------------------------------------

View File

@@ -120,18 +120,18 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase)
virtual bool DisplayHelp(wxString const &) = 0;
/// Allows one to override the default settings for the help frame.
virtual void SetFrameParameters(const wxString &title,
const wxSize &size,
const wxPoint &pos = wxDefaultPosition,
bool newFrameEachTime = FALSE)
virtual void SetFrameParameters(const wxString& WXUNUSED(title),
const wxSize& WXUNUSED(size),
const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
bool WXUNUSED(newFrameEachTime) = FALSE)
{
// does nothing by default
}
/// Obtains the latest settings used by the help frame and the help
/// frame.
virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newFrameEachTime = NULL)
virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
wxPoint *WXUNUSED(pos) = NULL,
bool *WXUNUSED(newFrameEachTime) = NULL)
{
return (wxFrame*) NULL;// does nothing by default
}

View File

@@ -40,7 +40,7 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
// server is only required when implementing TCP/IP-based
// help controllers.
virtual bool Initialize(const wxString& WXUNUSED(file), int WXUNUSED(server) ) { return FALSE; }
virtual bool Initialize(const wxString& file) { return FALSE; }
virtual bool Initialize(const wxString& WXUNUSED(file)) { return FALSE; }
// Set viewer: only relevant to some kinds of controller
virtual void SetViewer(const wxString& WXUNUSED(viewer), long WXUNUSED(flags) = 0) {}
@@ -52,18 +52,18 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
virtual bool DisplayBlock(long blockNo) = 0;
virtual bool KeywordSearch(const wxString& k) = 0;
/// Allows one to override the default settings for the help frame.
virtual void SetFrameParameters(const wxString &title,
const wxSize &size,
const wxPoint &pos = wxDefaultPosition,
bool newFrameEachTime = FALSE)
virtual void SetFrameParameters(const wxString& WXUNUSED(title),
const wxSize& WXUNUSED(size),
const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
bool WXUNUSED(newFrameEachTime) = FALSE)
{
// does nothing by default
}
/// Obtains the latest settings used by the help frame and the help
/// frame.
virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newFrameEachTime = NULL)
virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
wxPoint *WXUNUSED(pos) = NULL,
bool *WXUNUSED(newFrameEachTime) = NULL)
{
return (wxFrame*) NULL;// does nothing by default
}

View File

@@ -60,12 +60,12 @@ wxFont& wxFont::operator=(const wxFont& font)
// VZ: is it correct to compare pointers and not the contents? (FIXME)
bool wxFontBase::operator==(const wxFont& font) const
{
return m_refData == font.m_refData;
return GetFontData() == font.GetFontData();
}
bool wxFontBase::operator!=(const wxFont& font) const
{
return m_refData != font.m_refData;
return GetFontData() != font.GetFontData();
}
wxString wxFontBase::GetFamilyString() const

View File

@@ -642,7 +642,7 @@ bool wxImageHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSE
return FALSE;
}
bool wxImageHandler::CanRead( wxInputStream& stream )
bool wxImageHandler::CanRead( wxInputStream& WXUNUSED(stream) )
{
return FALSE;
}

View File

@@ -36,7 +36,7 @@
// PCX decoding
//-----------------------------------------------------------------------------
void RLEencode(unsigned char *p, unsigned int size, wxOutputStream& s)
void RLEencode(unsigned char *WXUNUSED(p), unsigned int WXUNUSED(size), wxOutputStream& WXUNUSED(s))
{
}
@@ -255,7 +255,7 @@ bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
return TRUE;
}
bool wxPCXHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbose )
bool wxPCXHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSED(stream), bool verbose )
{
if (verbose)
wxLogError(_T("wxPCXHandler::SaveFile still not implemented"));

View File

@@ -677,7 +677,7 @@ size_t wxCountingOutputStream::GetSize() const
return m_lastcount;
}
size_t wxCountingOutputStream::OnSysWrite(const void *buffer, size_t size)
size_t wxCountingOutputStream::OnSysWrite(const void *WXUNUSED(buffer), size_t size)
{
m_currentPos += size;
if (m_currentPos > m_lastcount) m_lastcount = m_currentPos;

View File

@@ -817,7 +817,7 @@ void wxFileDialog::HandleAction( const wxString &fn )
wxDialog::OnOK(event);
}
void wxFileDialog::OnListOk( wxCommandEvent &event )
void wxFileDialog::OnListOk( wxCommandEvent &WXUNUSED(event) )
{
HandleAction( m_text->GetValue() );
}
@@ -881,7 +881,7 @@ wxString
wxFileSelectorEx(const wxChar *message,
const wxChar *default_path,
const wxChar *default_filename,
int *indexDefaultExtension,
int *WXUNUSED(indexDefaultExtension),
const wxChar *wildcard,
int flags,
wxWindow *parent,

View File

@@ -220,7 +220,7 @@ wxHelpFrame::~wxHelpFrame()
}
void
wxHelpFrame::OnClose(wxCloseEvent &ev)
wxHelpFrame::OnClose(wxCloseEvent &WXUNUSED(ev))
{
wxASSERT(m_controller);
m_controller->m_Frame = NULL;

View File

@@ -90,7 +90,7 @@ wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
m_pTextCtrl = pTextCtrl;
}
void wxLogTextCtrl::DoLogString(const wxChar *szString, time_t t)
void wxLogTextCtrl::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
{
wxString msg;
TimeStamp(&msg);

View File

@@ -433,7 +433,7 @@ size_t wxBitmapDataObject::GetSize() const
return m_pngSize;
}
void wxBitmapDataObject::WriteBitmap( const wxBitmap &bitmap, void *dest ) const
void wxBitmapDataObject::WriteBitmap( const wxBitmap &WXUNUSED(bitmap), void *dest ) const
{
// if (m_bitmap == bitmap)
memcpy( dest, m_pngData, m_pngSize );

View File

@@ -150,7 +150,7 @@ void wxFont::Init()
wxTheFontList->Append( this );
}
wxFont::wxFont( GdkFont *font, char *xFontName )
wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName )
{
if (!xFontName)
return;

View File

@@ -100,7 +100,7 @@ void gtk_fontdialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFontDialog *dialo
IMPLEMENT_DYNAMIC_CLASS(wxFontDialog,wxDialog)
wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *data )
wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *WXUNUSED(data) )
{
m_needParent = FALSE;

View File

@@ -137,7 +137,7 @@ static void gtk_toolbar_attached_callback( GtkWidget *WXUNUSED(widget), GtkWidge
// "child_detached" of tool bar
//-----------------------------------------------------------------------------
static void gtk_toolbar_detached_callback( GtkWidget *widget, GtkWidget *WXUNUSED(child), wxFrame *win )
static void gtk_toolbar_detached_callback( GtkWidget *WXUNUSED(widget), GtkWidget *WXUNUSED(child), wxFrame *win )
{
if (g_isIdle)
wxapp_install_idle_handler();
@@ -191,7 +191,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *ev
so we do this directly after realization */
static gint
gtk_frame_realized_callback( GtkWidget *widget, wxFrame *win )
gtk_frame_realized_callback( GtkWidget *WXUNUSED(widget), wxFrame *win )
{
if (g_isIdle)
wxapp_install_idle_handler();

View File

@@ -49,7 +49,7 @@ extern wxList wxPendingDelete;
static void gtk_mdi_page_change_callback(GtkNotebook *WXUNUSED(widget),
GtkNotebookPage *WXUNUSED(page),
gint page,
gint WXUNUSED(page),
wxMDIParentFrame *parent )
{
if (g_isIdle)

View File

@@ -1648,7 +1648,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *WXUNUSED(widget),
// "button_release_event" from scrollbar
//-----------------------------------------------------------------------------
static gint gtk_scrollbar_button_release_callback( GtkRange *widget,
static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
GdkEventButton *WXUNUSED(gdk_event),
wxWindow *win )
{

View File

@@ -433,7 +433,7 @@ size_t wxBitmapDataObject::GetSize() const
return m_pngSize;
}
void wxBitmapDataObject::WriteBitmap( const wxBitmap &bitmap, void *dest ) const
void wxBitmapDataObject::WriteBitmap( const wxBitmap &WXUNUSED(bitmap), void *dest ) const
{
// if (m_bitmap == bitmap)
memcpy( dest, m_pngData, m_pngSize );

View File

@@ -150,7 +150,7 @@ void wxFont::Init()
wxTheFontList->Append( this );
}
wxFont::wxFont( GdkFont *font, char *xFontName )
wxFont::wxFont( GdkFont *WXUNUSED(font), char *xFontName )
{
if (!xFontName)
return;

View File

@@ -100,7 +100,7 @@ void gtk_fontdialog_cancel_callback( GtkWidget *WXUNUSED(w), wxFontDialog *dialo
IMPLEMENT_DYNAMIC_CLASS(wxFontDialog,wxDialog)
wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *data )
wxFontDialog::wxFontDialog( wxWindow *parent, wxFontData *WXUNUSED(data) )
{
m_needParent = FALSE;

View File

@@ -137,7 +137,7 @@ static void gtk_toolbar_attached_callback( GtkWidget *WXUNUSED(widget), GtkWidge
// "child_detached" of tool bar
//-----------------------------------------------------------------------------
static void gtk_toolbar_detached_callback( GtkWidget *widget, GtkWidget *WXUNUSED(child), wxFrame *win )
static void gtk_toolbar_detached_callback( GtkWidget *WXUNUSED(widget), GtkWidget *WXUNUSED(child), wxFrame *win )
{
if (g_isIdle)
wxapp_install_idle_handler();
@@ -191,7 +191,7 @@ gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventConfigure *ev
so we do this directly after realization */
static gint
gtk_frame_realized_callback( GtkWidget *widget, wxFrame *win )
gtk_frame_realized_callback( GtkWidget *WXUNUSED(widget), wxFrame *win )
{
if (g_isIdle)
wxapp_install_idle_handler();

View File

@@ -49,7 +49,7 @@ extern wxList wxPendingDelete;
static void gtk_mdi_page_change_callback(GtkNotebook *WXUNUSED(widget),
GtkNotebookPage *WXUNUSED(page),
gint page,
gint WXUNUSED(page),
wxMDIParentFrame *parent )
{
if (g_isIdle)

View File

@@ -1648,7 +1648,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *WXUNUSED(widget),
// "button_release_event" from scrollbar
//-----------------------------------------------------------------------------
static gint gtk_scrollbar_button_release_callback( GtkRange *widget,
static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
GdkEventButton *WXUNUSED(gdk_event),
wxWindow *win )
{

View File

@@ -13,6 +13,10 @@
#if wxUSE_DIALUP_MANAGER
#ifdef __GNUG__
#pragma implementation "dialup.h"
#endif
#ifndef WX_PRECOMP
# include "wx/defs.h"
#endif // !PCH
@@ -214,7 +218,7 @@ public:
{
m_DupMan = dupman;
}
void OnTerminate(int pid, int status) const
void OnTerminate(int WXUNUSED(pid), int WXUNUSED(status)) const
{
m_DupMan->m_DialProcess = NULL;
m_DupMan->CheckStatus(TRUE);
@@ -485,7 +489,7 @@ wxDialUpManagerImpl::CheckStatusInternal(void)
/* static */
wxDialUpManager *
wxDialUpManager::wxDialUpManager::Create(void)
wxDialUpManager::Create(void)
{
return new wxDialUpManagerImpl;
}