]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
compilation fixes - wxGTK compiles but not links
[wxWidgets.git] / src / common / cmdline.cpp
index 29399558f533abbbed8adb1523639cb5d3a9dd2d..49f362bfa00eea61806dee699237cf93f7ec542f 100644 (file)
@@ -28,6 +28,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_CMDLINE_PARSER
+
 #ifndef WX_PRECOMP
     #include "wx/string.h"
     #include "wx/log.h"
@@ -478,12 +480,11 @@ wxString wxCmdLineParser::GetParam(size_t n) const
 // Resets switches and options
 void wxCmdLineParser::Reset()
 {
-       unsigned int i;
-       for (i = 0; i < m_data->m_options.Count(); i++)
-       {
-               wxCmdLineOption& opt = m_data->m_options[(size_t)i];
-               opt.SetHasValue(FALSE);
-       }
+    for ( size_t i = 0; i < m_data->m_options.Count(); i++ )
+    {
+        wxCmdLineOption& opt = m_data->m_options[i];
+        opt.SetHasValue(FALSE);
+    }
 }
 
 
@@ -502,7 +503,7 @@ int wxCmdLineParser::Parse()
 
     size_t countParam = m_data->m_paramDesc.GetCount();
 
-       Reset();
+    Reset();
 
     // parse everything
     wxString arg;
@@ -964,3 +965,5 @@ static wxString GetTypeName(wxCmdLineParamType type)
 
     return s;
 }
+
+#endif // wxUSE_CMDLINE_PARSER