projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correction to last commit: Korean and Romanian translations will only be in 2.9.1...
[wxWidgets.git]
/
src
/
common
/
textbuf.cpp
diff --git
a/src/common/textbuf.cpp
b/src/common/textbuf.cpp
index 17e00fac4194717050a0eb14e802d38714b28d07..b6e8362c852c0a3161daf1bd8eecf8de41c38c0c 100644
(file)
--- a/
src/common/textbuf.cpp
+++ b/
src/common/textbuf.cpp
@@
-80,14
+80,14
@@
wxString wxTextBuffer::Translate(const wxString& text, wxTextFileType type)
wxString eol = GetEOL(type), result;
// optimization: we know that the length of the new string will be about
wxString eol = GetEOL(type), result;
// optimization: we know that the length of the new string will be about
- // the same as the length of the old one, so prealloc memory to av
io
d
+ // the same as the length of the old one, so prealloc memory to av
oi
d
// unnecessary relocations
result.Alloc(text.Len());
wxChar chLast = 0;
// unnecessary relocations
result.Alloc(text.Len());
wxChar chLast = 0;
- for (
const wxChar *pc = text.c_str(); *pc; pc++
)
+ for (
wxString::const_iterator i = text.begin(); i != text.end(); ++i
)
{
{
- wxChar ch = *
pc
;
+ wxChar ch = *
i
;
switch ( ch ) {
case _T('\n'):
// Dos/Unix line termination
switch ( ch ) {
case _T('\n'):
// Dos/Unix line termination