]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix too hastily copy-pasted wxVariantDataSafeArray documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Sep 2012 10:50:07 +0000 (10:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Sep 2012 10:50:07 +0000 (10:50 +0000)
Some parts were not updated after copying them from wxVariantDataErrorCode.

Closes #14689.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/msw/ole/automtn.h

index cfa2cb7144c6d8398a062add4984a379190966cb..0320b16111c36fa6cc93f0e03203c75a440026a2 100644 (file)
@@ -254,7 +254,7 @@ public:
         for ( unsigned col = 0; col < colCount; col++ )
         {
             indices[1] = col;
-            if ( !safeArray.SetElement(indices, wxString::Format("R%ud C%ud", i+1, j+1)) )(
+            if ( !safeArray.SetElement(indices, wxString::Format("R%u C%u", row+1, col+1)) )
                return false;
         }
     }
@@ -314,8 +314,8 @@ public:
     void SetValue(SAFEARRAY* value);
 
     /**
-        Returns true if @a data is of wxVariantDataErrorCode type
-        and contains the same SCODE value.
+        Returns true if @a data is of wxVariantDataSafeArray type
+        and contains the same SAFEARRAY* value.
     */
     virtual bool Eq(wxVariantData& data) const;
 
@@ -323,7 +323,7 @@ public:
         Fills the provided string with the textual representation of this
         object.
 
-        The error code is just a number, so it's output as such.
+        Only the address of SAFEARRAY pointer is output.
     */
     virtual bool Write(wxString& str) const;