]> git.saurik.com Git - wxWidgets.git/commit - src/generic/odcombo.cpp
Use wxString's empty() when checking if the string is (non-)empty throughout wx.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 22 Jan 2011 14:38:36 +0000 (14:38 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 22 Jan 2011 14:38:36 +0000 (14:38 +0000)
commit6636ef8ddf9eda0d0352c29d98cb141676a51a2d
tree8d1ff397aff342e709c7467e00ae1dadfec974ce
parentc9ed413ab4f5673ffff00198dc6ce1397398bda4
Use wxString's empty() when checking if the string is (non-)empty throughout wx.

Instead of constructs such as if "( s.length() )" and "if (s.length() > 0)" use "if ( !s.empty() )" instead. Similarly for "if (s.length() == 0)" or "if ( s.IsNull() )", use "if ( s.empty() )".
No code changes intended except for a few instances where a construct like "if ( s.length() && wxFileExists(s) )" was changed to not check the length of the string and let wxFileExists handle such cases.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
47 files changed:
demos/forty/canvas.cpp
demos/forty/playerdg.cpp
include/wx/propgrid/props.h
samples/aui/auidemo.cpp
samples/propgrid/propgrid.cpp
samples/propgrid/sampleprops.cpp
samples/widgets/bmpcombobox.cpp
src/common/bmpcboxcmn.cpp
src/common/combocmn.cpp
src/common/dcgraph.cpp
src/common/filesys.cpp
src/common/fs_arc.cpp
src/common/http.cpp
src/common/imaggif.cpp
src/common/stringimpl.cpp
src/common/translation.cpp
src/common/url.cpp
src/common/xtixml.cpp
src/generic/fontdlgg.cpp
src/generic/helpext.cpp
src/generic/odcombo.cpp
src/gtk1/combobox.cpp
src/gtk1/mdi.cpp
src/motif/filedlg.cpp
src/motif/textctrl.cpp
src/msw/metafile.cpp
src/msw/ole/automtn.cpp
src/os2/dialog.cpp
src/os2/metafile.cpp
src/os2/toolbar.cpp
src/osx/carbon/dataobj.cpp
src/osx/carbon/filedlg.cpp
src/osx/core/mimetype.cpp
src/propgrid/advprops.cpp
src/propgrid/editors.cpp
src/propgrid/manager.cpp
src/propgrid/property.cpp
src/propgrid/propgrid.cpp
src/propgrid/propgridiface.cpp
src/propgrid/propgridpagestate.cpp
src/propgrid/props.cpp
src/richtext/richtextbuffer.cpp
src/stc/ScintillaWX.cpp
src/unix/dialup.cpp
src/unix/net.cpp
src/x11/textctrl.cpp
utils/wxrc/wxrc.cpp