]> git.saurik.com Git - wxWidgets.git/commitdiff
fix some comp errors on DMC
authorRyan Norton <wxprojects@comcast.net>
Thu, 11 Nov 2004 08:29:43 +0000 (08:29 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 11 Nov 2004 08:29:43 +0000 (08:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/uri.cpp

index e6475f93fba60f9480d5aa26cbe807799a8e8ea8..e1878f78c44efdb00fdc7316689263dfe8b9af92 100644 (file)
@@ -467,7 +467,8 @@ const wxChar* wxURI::ParseServer(const wxChar* uri)
     // IP-literal    = "[" ( IPv6address / IPvFuture  ) "]"
     if (*uri == wxT('['))
     {
-        if (ParseIPv6address(++uri) && *uri == wxT(']'))
+        ++uri; //some compilers don't support *&ing a ++*
+        if (ParseIPv6address(uri) && *uri == wxT(']'))
         {
             ++uri;
             m_hostType = wxURI_IPV6ADDRESS;
@@ -480,7 +481,8 @@ const wxChar* wxURI::ParseServer(const wxChar* uri)
         {
             uri = uricopy;
 
-            if (ParseIPvFuture(++uri) && *uri == wxT(']'))
+            ++uri; //some compilers don't support *&ing a ++*
+            if (ParseIPvFuture(uri) && *uri == wxT(']'))
             {
                 ++uri;
                 m_hostType = wxURI_IPVFUTURE;