aboutsummaryrefslogtreecommitdiff
path: root/dw/iterator.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-08 21:16:37 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-08 21:16:37 -0300
commit845493306279f446dbac9568a0a1e0f442e615dd (patch)
treedbf0a36e50a268b456760ce881a802d28979cc5f /dw/iterator.cc
parent283a7960e615b14c21b7ce757b0fcbe5c945bb95 (diff)
's/if(/if (/g' 's/for(/for (/g' 's/while(/while (/g', and indentation.
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r--dw/iterator.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc
index 39e09d41..41c2c444 100644
--- a/dw/iterator.cc
+++ b/dw/iterator.cc
@@ -210,7 +210,7 @@ int EmptyIterator::compareTo (misc::Comparable *other)
if (content.type == otherIt->content.type)
return 0;
- else if(content.type == Content::START)
+ else if (content.type == Content::START)
return -1;
else
return +1;
@@ -487,7 +487,7 @@ DeepIterator::DeepIterator (Iterator *it)
//DEBUG_MSG (1, " => %s\n", a_Dw_iterator_text (it));
- if(hasContents) {
+ if (hasContents) {
// If this widget has parents, we must construct appropriate iterators.
//
// \todo There may be a faster way instead of iterating through the
@@ -679,7 +679,7 @@ bool CharIterator::next ()
if (ch == START || it->getContent()->type == Content::BREAK ||
(it->getContent()->type == Content::TEXT &&
it->getContent()->text[pos] == 0)) {
- if(it->next()) {
+ if (it->next()) {
if (it->getContent()->type == Content::BREAK)
ch = '\n';
else { // if (it->getContent()->type == Content::TEXT)
@@ -695,7 +695,7 @@ bool CharIterator::next ()
ch = END;
return false;
}
- } else if(ch == END)
+ } else if (ch == END)
return false;
else {
// at this point, it->getContent()->type == Content::TEXT
@@ -717,7 +717,7 @@ bool CharIterator::prev ()
{
if (ch == END || it->getContent()->type == Content::BREAK ||
(it->getContent()->type == Content::TEXT && pos == 0)) {
- if(it->prev()) {
+ if (it->prev()) {
if (it->getContent()->type == Content::BREAK)
ch = '\n';
else { // if (it->getContent()->type == Content::TEXT)
@@ -739,7 +739,7 @@ bool CharIterator::prev ()
ch = START;
return false;
}
- } else if(ch == START)
+ } else if (ch == START)
return false;
else {
// at this point, it->getContent()->type == Content::TEXT