summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/OutputUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
committerMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
commit59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch)
treec3ed292df270f11157decb83827d9af4144db52d /cpp/src/IceUtil/OutputUtil.cpp
parentfile run.py was initially added on branch location. (diff)
downloadice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip
removed spaces after keywords
Diffstat (limited to 'cpp/src/IceUtil/OutputUtil.cpp')
-rw-r--r--cpp/src/IceUtil/OutputUtil.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/cpp/src/IceUtil/OutputUtil.cpp b/cpp/src/IceUtil/OutputUtil.cpp
index 1c690ff5f88..1759f8bec88 100644
--- a/cpp/src/IceUtil/OutputUtil.cpp
+++ b/cpp/src/IceUtil/OutputUtil.cpp
@@ -73,9 +73,9 @@ IceUtil::OutputBase::open(const char* s)
void
IceUtil::OutputBase::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;
}
@@ -144,9 +144,9 @@ IceUtil::OutputBase::nl()
int indent = _indent;
- if (_useTab)
+ if(_useTab)
{
- while (indent >= 8)
+ while(indent >= 8)
{
indent -= 8;
_out << '\t';
@@ -155,7 +155,7 @@ IceUtil::OutputBase::nl()
}
else
{
- while (indent >= _indentSize)
+ while(indent >= _indentSize)
{
indent -= _indentSize;
_out << " ";
@@ -163,7 +163,7 @@ IceUtil::OutputBase::nl()
}
}
- while (indent > 0)
+ while(indent > 0)
{
--indent;
_out << ' ';
@@ -176,7 +176,7 @@ IceUtil::OutputBase::nl()
void
IceUtil::OutputBase::sp()
{
- if (_separator)
+ if(_separator)
{
_out << '\n';
}
@@ -228,7 +228,7 @@ IceUtil::Output::setEndBlock(const char *eb)
void
IceUtil::Output::sb()
{
- if (_blockStart.length())
+ if(_blockStart.length())
{
nl();
_out << _blockStart;
@@ -242,7 +242,7 @@ void
IceUtil::Output::eb()
{
dec();
- if (_blockEnd.length())
+ if(_blockEnd.length())
{
nl();
_out << _blockEnd;
@@ -293,7 +293,7 @@ IceUtil::XMLOutput::setSGML(bool sgml)
void
IceUtil::XMLOutput::print(const char* s)
{
- if (!_printed)
+ if(!_printed)
{
_out << '>';
_printed = true;
@@ -304,7 +304,7 @@ IceUtil::XMLOutput::print(const char* s)
void
IceUtil::XMLOutput::nl()
{
- if (!_printed)
+ if(!_printed)
{
_printed = true;
_out << '>';
@@ -323,7 +323,7 @@ IceUtil::XMLOutput::se(const std::string& element)
// emitted) or until something //is displayed.
//
_out << '<' << element;
- if (_sgml)
+ if(_sgml)
{
_out << '>';
}
@@ -334,7 +334,7 @@ IceUtil::XMLOutput::se(const std::string& element)
string::size_type pos = element.find_first_of(" \t");
- if (pos == string::npos)
+ if(pos == string::npos)
{
_elementStack.push(element);
}
@@ -355,7 +355,7 @@ IceUtil::XMLOutput::ee()
_elementStack.pop();
dec();
- if (!_printed)
+ if(!_printed)
{
_out << "/>";
}