misc fixes of ctor signatures

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-10-13 13:46:42 +00:00
parent cc0972a251
commit 8067ee1174
10 changed files with 238 additions and 231 deletions

View File

@@ -34,7 +34,8 @@ public:
@param stream
The output stream.
*/
wxDataOutputStream(wxOutputStream& stream);
wxDataOutputStream(wxOutputStream& stream,
const wxMBConv& conv = wxConvAuto());
/**
Constructs a datastream object from an output stream. Only write
@@ -179,7 +180,8 @@ public:
@param stream
The input stream.
*/
wxDataInputStream(wxInputStream& stream);
wxDataInputStream(wxInputStream& stream,
const wxMBConv& conv = wxConvAuto());
/**
Constructs a datastream object from an input stream. Only read methods

View File

@@ -227,10 +227,8 @@ public:
@param modif
Modification date and time for this file.
*/
wxFSFile(wxInputStream stream,
const wxString& location,
const wxString& mimetype,
const wxString& anchor,
wxFSFile(wxInputStream* stream, const wxString& location,
const wxString& mimetype, const wxString& anchor,
wxDateTime modif);
/**

View File

@@ -12,7 +12,7 @@
This cell changes the colour of either the background or the foreground.
@library{wxhtml}
@category{FIXME}
@category{html}
*/
class wxHtmlColourCell : public wxHtmlCell
{
@@ -48,7 +48,7 @@ public:
change background color
*/
wxHtmlColourCell(wxColour clr, int flags = wxHTML_CLR_FOREGROUND);
wxHtmlColourCell(const wxColour& clr, int flags = wxHTML_CLR_FOREGROUND);
};
@@ -328,7 +328,7 @@ public:
/**
Constructor. @a parent is pointer to parent container or @NULL.
*/
wxHtmlContainerCell(wxHtmlContainerCell parent);
wxHtmlContainerCell(wxHtmlContainerCell* parent);
/**
Returns container's horizontal alignment.

View File

@@ -23,9 +23,9 @@ protected:
yourself. Feel free to ignore the constructor parameters.
Have a look at src/html/htmlpars.cpp if you're interested in creating it.
*/
wxHtmlTag(wxHtmlTag* parent, const wxString& source, int pos,
int end_pos, wxHtmlTagsCache* cache,
wxHtmlEntitiesParser* entParser);
wxHtmlTag(wxHtmlTag* parent, const wxString* source,
const const_iterator& pos, const const_iterator& end_pos,
wxHtmlTagsCache* cache, wxHtmlEntitiesParser* entParser);
public:
/**

View File

@@ -421,7 +421,7 @@ public:
Constructs a log target which sends all the log messages to the given
@c FILE. If it is @NULL, the messages are sent to @c stderr.
*/
wxLogStderr(FILE fp = NULL);
wxLogStderr(FILE* fp = NULL);
};
@@ -510,7 +510,7 @@ public:
Constructs a log target which sends all the log messages to the given text
control. The @a textctrl parameter cannot be @NULL.
*/
wxLogTextCtrl(wxTextCtrl textctrl);
wxLogTextCtrl(wxTextCtrl* pTextCtrl);
};

View File

@@ -234,13 +234,19 @@ wxMimeTypesManager* wxTheMimeTypesManager;
*/
class wxFileType
{
public:
private:
/**
The default constructor is private because you should never create objects of
this type: they are only returned by wxMimeTypesManager methods.
*/
wxFileType();
public:
/**
Copy ctor.
*/
wxFileType(const wxFileTypeInfo& ftInfo);
/**
The destructor of this class is not virtual, so it should not be derived from.
*/

View File

@@ -26,7 +26,7 @@ public:
@warning
If the buffer is created, it will be destroyed at the destruction of the stream.
*/
wxMemoryOutputStream(char* data = NULL, size_t length = 0);
wxMemoryOutputStream(void* data = NULL, size_t length = 0);
/**
Destructor.

View File

@@ -140,10 +140,10 @@ public:
Pass a print preview object plus other normal frame arguments.
The print preview object will be destroyed by the frame when it closes.
*/
wxPreviewFrame(wxPrintPreview* preview, wxWindow* parent,
const wxString& title,
wxPreviewFrame(wxPrintPreviewBase* preview, wxWindow* parent,
const wxString& title = "Print Preview",
const wxPoint& pos = wxDefaultPosition,
const wxSize& size size = wxDefaultSize,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = "frame");

View File

@@ -1208,7 +1208,8 @@ public:
@param flags
Socket flags (See wxSocketBase::SetFlags())
*/
wxDatagramSocket(wxSocketFlags flags = wxSOCKET_NONE);
wxDatagramSocket(const wxSockAddress& addr,
wxSocketFlags flags = wxSOCKET_NONE);
/**
Destructor. Please see wxSocketBase::Destroy().

View File

@@ -43,7 +43,7 @@ public:
Dialog position.
*/
wxPasswordEntryDialog(wxWindow* parent, const wxString& message,
const wxString& caption = "Enter password",
const wxString& caption = wxGetPasswordFromUserPromptStr,
const wxString& defaultValue = wxEmptyString,
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
@@ -84,8 +84,8 @@ public:
Dialog position.
*/
wxTextEntryDialog(wxWindow* parent, const wxString& message,
const wxString& caption = "Please enter text",
const wxString& defaultValue = "",
const wxString& caption = wxGetTextFromUserPromptStr,
const wxString& value = wxEmptyString,
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxDefaultPosition);