added missing consts and pass objects by const reference instead of by value (patch 1205869)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,7 +67,7 @@ bool wxClipboardOpen()
|
||||
return wxTheClipboard->IsOpened();
|
||||
}
|
||||
|
||||
bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
|
||||
bool wxIsClipboardFormatAvailable(const wxDataFormat& dataFormat)
|
||||
{
|
||||
return wxTheClipboard->IsSupported( dataFormat );
|
||||
}
|
||||
@@ -129,7 +129,7 @@ wxObject *wxGetClipboardData(wxDataFormat dataFormat, long *len)
|
||||
return NULL; // just in case...
|
||||
}
|
||||
|
||||
wxDataFormat wxEnumClipboardFormats(wxDataFormat dataFormat)
|
||||
wxDataFormat wxEnumClipboardFormats(const wxDataFormat& dataFormat)
|
||||
{
|
||||
// Only wxDF_TEXT supported
|
||||
if (dataFormat == wxDF_TEXT)
|
||||
@@ -144,7 +144,7 @@ wxDataFormat wxRegisterClipboardFormat(char *WXUNUSED(formatName))
|
||||
return wxDF_INVALID;
|
||||
}
|
||||
|
||||
bool wxGetClipboardFormatName(wxDataFormat dataFormat, char *formatName,
|
||||
bool wxGetClipboardFormatName(const wxDataFormat& dataFormat, char *formatName,
|
||||
int maxCount)
|
||||
{
|
||||
wxStrncpy( formatName, dataFormat.GetId().c_str(), maxCount );
|
||||
|
||||
Reference in New Issue
Block a user