]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just fix some comments in wxOSX wxMenu header.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Jul 2013 14:10:32 +0000 (14:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Jul 2013 14:10:32 +0000 (14:10 +0000)
Mostly clarify DoInsertOrAppend() comment, the "is"/"if" typo made it rather
unclear.

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

include/wx/osx/menu.h

index ceea341234cce4cc57b5d287dfe2402365f95783..4025aa9c70ec208bc463a575ac88f0bdb2b1c918 100644 (file)
@@ -75,14 +75,14 @@ private:
     // common part of all ctors
     void Init();
 
-    // common part of Append/Insert (behaves as Append is pos == (size_t)-1)
+    // common part of Do{Append,Insert}(): behaves as Append if pos == -1
     bool DoInsertOrAppend(wxMenuItem *item, size_t pos = (size_t)-1);
 
     // Common part of HandleMenu{Opened,Closed}().
     void DoHandleMenuOpenedOrClosed(wxEventType evtType);
 
 
-    // if TRUE, insert a breal before appending the next item
+    // if TRUE, insert a break before appending the next item
     bool m_doBreak;
 
     // in this menu rearranging of menu items (esp hiding) is allowed