]> git.saurik.com Git - wxWidgets.git/commit - include/wx/choicebk.h
No changes, just use symbolic NO_IMAGE constant instead of -1 or wxNOT_FOUND.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Aug 2011 14:08:49 +0000 (14:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Aug 2011 14:08:49 +0000 (14:08 +0000)
commit1871b9facb9435e636f1ce355fd31a0594438d01
tree50511616ebce814280a84b5fb719915e978ecc3e
parentabfdefede3209ac777bdac8a65bae8bf008f327b
No changes, just use symbolic NO_IMAGE constant instead of -1 or wxNOT_FOUND.

Existing declarations used -1 in several places to indicate the absence of the
image which wasn't especially clear and was also inconsistent with other
places that used wxNOT_FOUND which didn't make much sense in this context.

Add a new symbolic constant NO_IMAGE in wxWithImages and use it in the classes
deriving from it. This still doesn't help with wx{Tree,List}Ctrl but improves
clarity for the other classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
16 files changed:
include/wx/bookctrl.h
include/wx/choicebk.h
include/wx/cocoa/notebook.h
include/wx/dataview.h
include/wx/generic/notebook.h
include/wx/gtk/notebook.h
include/wx/gtk1/notebook.h
include/wx/listbook.h
include/wx/msw/notebook.h
include/wx/osx/notebook.h
include/wx/palmos/notebook.h
include/wx/toolbook.h
include/wx/treebook.h
include/wx/univ/notebook.h
include/wx/withimages.h
interface/wx/bookctrl.h