summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/FileUserAccountMapperI.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2017-05-02 13:58:41 -0400
committerJoe George <joe@zeroc.com>2017-05-02 15:42:34 -0400
commitcd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch)
tree5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/src/IceGrid/FileUserAccountMapperI.cpp
parentRemoved trailing whitespace generated by slice2js (diff)
downloadice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip
Remove trailing whitespace
Diffstat (limited to 'cpp/src/IceGrid/FileUserAccountMapperI.cpp')
-rw-r--r--cpp/src/IceGrid/FileUserAccountMapperI.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/FileUserAccountMapperI.cpp b/cpp/src/IceGrid/FileUserAccountMapperI.cpp
index cbd6b84a10e..bc27c667fda 100644
--- a/cpp/src/IceGrid/FileUserAccountMapperI.cpp
+++ b/cpp/src/IceGrid/FileUserAccountMapperI.cpp
@@ -22,7 +22,7 @@ FileUserAccountMapperI::FileUserAccountMapperI(const string& filename)
{
throw "cannot open `" + filename + "' for reading: " + strerror(errno);
}
-
+
const string delim = " \t\r\n";
while(true)
{
@@ -38,13 +38,13 @@ FileUserAccountMapperI::FileUserAccountMapperI(const string& filename)
{
line.erase(idx);
}
-
+
idx = line.find_last_not_of(delim);
if(idx != string::npos && idx + 1 < line.length())
{
line.erase(idx + 1);
}
-
+
string::size_type beg = line.find_first_not_of(delim);
if(beg == string::npos)
{
@@ -55,16 +55,16 @@ FileUserAccountMapperI::FileUserAccountMapperI(const string& filename)
if(end == string::npos || end <= beg)
{
continue;
- }
+ }
string account = line.substr(beg, end - beg);
beg = line.find_first_not_of(delim, end);
if(beg == string::npos)
{
continue;
- }
+ }
string user = line.substr(beg);
-
+
assert(!user.empty());
assert(!account.empty());