summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/cursor/Client.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/test/Freeze/cursor/Client.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/test/Freeze/cursor/Client.cpp')
-rw-r--r--cpp/test/Freeze/cursor/Client.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/test/Freeze/cursor/Client.cpp b/cpp/test/Freeze/cursor/Client.cpp
index 1bd50da5e54..eee8a7fb45e 100644
--- a/cpp/test/Freeze/cursor/Client.cpp
+++ b/cpp/test/Freeze/cursor/Client.cpp
@@ -86,7 +86,7 @@ vector<char> alphabet(alphabetChars, alphabetChars + sizeof(alphabetChars)-1);
static void
populateDB(const DBPtr& db)
{
- for (vector<char>::const_iterator j = alphabet.begin() ; j != alphabet.end(); ++j)
+ for(vector<char>::const_iterator j = alphabet.begin() ; j != alphabet.end(); ++j)
{
addValue(db, *j, j-alphabet.begin());
}
@@ -133,7 +133,7 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
test(key == *j && value == j - alphabet.begin());
++j;
}
- while (cursor->next());
+ while(cursor->next());
}
catch(const DBNotFoundException&)
{
@@ -145,7 +145,7 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
cout << "testing contains... ";
try
{
- for (j = alphabet.begin(); j != alphabet.end(); ++j)
+ for(j = alphabet.begin(); j != alphabet.end(); ++j)
{
k = KeyCodec::write(*j, instance);
test(db->contains(k));
@@ -172,7 +172,7 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
test(key == *j && value == j - alphabet.begin());
++j;
}
- while (cursor->next());
+ while(cursor->next());
}
catch(const DBNotFoundException&)
{
@@ -194,10 +194,10 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
test(key == *j && value == j - alphabet.begin());
cursor->del();
++j;
- if (key == 'c')
+ if(key == 'c')
break;
}
- while (cursor->next());
+ while(cursor->next());
}
catch(const DBNotFoundException&)
{
@@ -216,7 +216,7 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
test(key == *j && value == j - alphabet.begin());
++j;
}
- while (cursor->next());
+ while(cursor->next());
}
catch(const DBNotFoundException&)
{
@@ -329,7 +329,7 @@ main(int argc, char* argv[])
try
{
communicator = Ice::initialize(argc, argv);
- if (argc != 1)
+ if(argc != 1)
{
dbEnvDir = argv[1];
dbEnvDir += "/";
@@ -344,7 +344,7 @@ main(int argc, char* argv[])
status = EXIT_FAILURE;
}
- if (dbEnv)
+ if(dbEnv)
{
try
{