summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/OutputUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-07-27 15:54:11 +0000
committerMarc Laukien <marc@zeroc.com>2001-07-27 15:54:11 +0000
commit46fdccd4eed746106dc138cb79fb1c95ed143532 (patch)
tree3dd0fb2ece313646766659f60d158b2d435e0c69 /cpp/src/Slice/OutputUtil.cpp
parentformat changes, bug fix (diff)
downloadice-46fdccd4eed746106dc138cb79fb1c95ed143532.tar.bz2
ice-46fdccd4eed746106dc138cb79fb1c95ed143532.tar.xz
ice-46fdccd4eed746106dc138cb79fb1c95ed143532.zip
added spacing
Diffstat (limited to 'cpp/src/Slice/OutputUtil.cpp')
-rw-r--r--cpp/src/Slice/OutputUtil.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Slice/OutputUtil.cpp b/cpp/src/Slice/OutputUtil.cpp
index 7e2c6ade881..5a34d525bfc 100644
--- a/cpp/src/Slice/OutputUtil.cpp
+++ b/cpp/src/Slice/OutputUtil.cpp
@@ -60,9 +60,9 @@ Slice::Output::open(const char* s)
void
Slice::Output::print(const char* s)
{
- for(unsigned int i = 0; i < strlen(s); ++i)
+ for (unsigned int i = 0; i < strlen(s); ++i)
{
- if(s[i] == '\n')
+ if (s[i] == '\n')
_pos = 0;
else
++_pos;
@@ -143,7 +143,7 @@ Slice::Output::nl()
if (_useTab)
{
- while(indent >= 8)
+ while (indent >= 8)
{
indent -= 8;
_out << '\t';
@@ -152,7 +152,7 @@ Slice::Output::nl()
}
else
{
- while(indent >= _indentSize)
+ while (indent >= _indentSize)
{
indent -= _indentSize;
_out << " ";
@@ -160,7 +160,7 @@ Slice::Output::nl()
}
}
- while(indent > 0)
+ while (indent > 0)
{
--indent;
_out << ' ';
@@ -192,7 +192,7 @@ Slice::Output::eb()
void
Slice::Output::sp()
{
- if(_separator)
+ if (_separator)
_out << '\n';
}