projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove MoveWindow method.
[wxWidgets.git]
/
src
/
common
/
stringimpl.cpp
diff --git
a/src/common/stringimpl.cpp
b/src/common/stringimpl.cpp
index 429f3843bdc94838c503b028d484e857fa8f24b3..ed9a83e476e14e4c406cabe32eca5aba2efa94c9 100644
(file)
--- a/
src/common/stringimpl.cpp
+++ b/
src/common/stringimpl.cpp
@@
-395,14
+395,14
@@
bool wxStringImpl::Alloc(size_t nLen)
wxStringImpl::iterator wxStringImpl::begin()
{
wxStringImpl::iterator wxStringImpl::begin()
{
- if (
length() > 0
)
+ if (
!empty()
)
CopyBeforeWrite();
return m_pchData;
}
wxStringImpl::iterator wxStringImpl::end()
{
CopyBeforeWrite();
return m_pchData;
}
wxStringImpl::iterator wxStringImpl::end()
{
- if (
length() > 0
)
+ if (
!empty()
)
CopyBeforeWrite();
return m_pchData + length();
}
CopyBeforeWrite();
return m_pchData + length();
}
@@
-528,7
+528,7
@@
size_t wxStringImpl::rfind(const wxStringImpl& str, size_t nStart) const
if ( length() >= str.length() )
{
// avoids a corner case later
if ( length() >= str.length() )
{
// avoids a corner case later
- if (
length() == 0 && str.length() == 0
)
+ if (
empty() && str.empty()
)
return 0;
// "top" is the point where search starts from
return 0;
// "top" is the point where search starts from