git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10318
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return wxFileType::ExpandCommand(sTmp, params);
}
return wxFileType::ExpandCommand(sTmp, params);
}
-bool wxFileTypeImpl::GetIcon(wxIcon *icon, wxString *iconFile /*= NULL */,
- int *iconIndex /*= NULL*/) const
+bool wxFileTypeImpl::GetIcon(wxIcon *icon,
+ wxString *iconFile /*= NULL */,
+ int *iconIndex /*= NULL*/) const
wxString sTmp;
size_t i = 0;
while ( (i < m_index.GetCount() ) && sTmp.IsEmpty() )
wxString sTmp;
size_t i = 0;
while ( (i < m_index.GetCount() ) && sTmp.IsEmpty() )
- {
- sTmp = m_manager->m_aIcons[m_index[i]];
- i ++;
- }
+ {
+ sTmp = m_manager->m_aIcons[m_index[i]];
+ i ++;
+ }
if ( sTmp.IsEmpty () ) return FALSE;
wxIcon icn;
if ( sTmp.IsEmpty () ) return FALSE;
wxIcon icn;
icn = wxIcon(sTmp, wxBITMAP_TYPE_ANY);
if ( icn.Ok() )
icn = wxIcon(sTmp, wxBITMAP_TYPE_ANY);
if ( icn.Ok() )
- {
- *icon = icn;
- if (iconFile) *iconFile = sTmp;
- if (iconIndex) *iconIndex = 0;
- return TRUE;
- }
- return FALSE;
+ {
+ *icon = icn;
+ if (iconFile) *iconFile = sTmp;
+ if (iconIndex) *iconIndex = 0;
+ return TRUE;
+#endif // wxUSE_GUI
+
+ return FALSE;
+}