Unwanted semicolon fix [#1212497] + source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1213,7 +1213,7 @@ public:
|
|||||||
int GetValue()
|
int GetValue()
|
||||||
{
|
{
|
||||||
int nOut;
|
int nOut;
|
||||||
CFNumberGetValue( m_cfnRef,
|
CFNumberGetValue( m_cfnRef,
|
||||||
kCFNumberIntType,
|
kCFNumberIntType,
|
||||||
&nOut
|
&nOut
|
||||||
);
|
);
|
||||||
@@ -1462,7 +1462,7 @@ wxFileType* wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
|||||||
wxCFDictionary cfdInfo;
|
wxCFDictionary cfdInfo;
|
||||||
bool bInfoOpenSuccess = false;
|
bool bInfoOpenSuccess = false;
|
||||||
wxFile indictfile;
|
wxFile indictfile;
|
||||||
if(indictfile.Open(sInfoPath, wxFile::read));
|
if(indictfile.Open(sInfoPath, wxFile::read))
|
||||||
{
|
{
|
||||||
CFIndex cfiBufLen = (CFIndex) indictfile.Length();
|
CFIndex cfiBufLen = (CFIndex) indictfile.Length();
|
||||||
const UInt8* pBuffer = new UInt8[cfiBufLen];
|
const UInt8* pBuffer = new UInt8[cfiBufLen];
|
||||||
@@ -1805,7 +1805,7 @@ wxMimeTypesManagerImpl::Unassociate(wxFileType *pFileType)
|
|||||||
wxCFDictionary cfdInfo;
|
wxCFDictionary cfdInfo;
|
||||||
bool bInfoOpenSuccess = false;
|
bool bInfoOpenSuccess = false;
|
||||||
wxFile indictfile;
|
wxFile indictfile;
|
||||||
if(indictfile.Open(sInfoPath, wxFile::read));
|
if(indictfile.Open(sInfoPath, wxFile::read))
|
||||||
{
|
{
|
||||||
CFIndex cfiBufLen = (CFIndex) indictfile.Length();
|
CFIndex cfiBufLen = (CFIndex) indictfile.Length();
|
||||||
const UInt8* pBuffer = new UInt8[cfiBufLen];
|
const UInt8* pBuffer = new UInt8[cfiBufLen];
|
||||||
|
@@ -48,23 +48,23 @@ class WXDLLEXPORT wxIcon;
|
|||||||
|
|
||||||
bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt)
|
bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon, int index)
|
bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon, int index)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@ this function is half implemented
|
// @@ this function is half implemented
|
||||||
bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
|
bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
|
bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
|
||||||
@@ -72,35 +72,35 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
|
|||||||
if ( m_strFileType.Length() > 0 )
|
if ( m_strFileType.Length() > 0 )
|
||||||
{
|
{
|
||||||
*mimeType = m_strFileType ;
|
*mimeType = m_strFileType ;
|
||||||
return TRUE ;
|
return true ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
|
bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
|
||||||
{
|
{
|
||||||
wxString s;
|
wxString s;
|
||||||
|
|
||||||
if (GetMimeType(&s))
|
if (GetMimeType(&s))
|
||||||
{
|
{
|
||||||
mimeTypes.Clear();
|
mimeTypes.Clear();
|
||||||
mimeTypes.Add(s);
|
mimeTypes.Add(s);
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetIcon(wxIconLocation *WXUNUSED(icon)) const
|
bool wxFileTypeImpl::GetIcon(wxIconLocation *WXUNUSED(icon)) const
|
||||||
{
|
{
|
||||||
// no such file type or no value or incorrect icon entry
|
// no such file type or no value or incorrect icon entry
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetDescription(wxString *desc) const
|
bool wxFileTypeImpl::GetDescription(wxString *desc) const
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
@@ -223,6 +223,6 @@ wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
|||||||
bool
|
bool
|
||||||
wxMimeTypesManagerImpl::Unassociate(wxFileType *ft)
|
wxMimeTypesManagerImpl::Unassociate(wxFileType *ft)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user