Skip to content

Commit

Permalink
Whitespace cleanup (#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
externl authored Jan 19, 2024
1 parent 695a383 commit 3e8804a
Show file tree
Hide file tree
Showing 107 changed files with 46 additions and 285 deletions.
1 change: 0 additions & 1 deletion cpp/include/IceBox/Service.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ using ServicePtr = ::std::shared_ptr<Service>;

#else // C++98 mapping


namespace IceBox
{

Expand Down
4 changes: 1 addition & 3 deletions cpp/include/IcePatch2/ClientUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@ typedef std::shared_ptr<Patcher> PatcherPtr;
typedef IceUtil::Handle<Patcher> PatcherPtr;
#endif // ICE_CPP11_MAPPING



//
// IcePatch2 clients instantiate the IcePatch2::Patcher class
// using the patcher factory.
//
class ICEPATCH2_API PatcherFactory
class ICEPATCH2_API PatcherFactory
#ifndef ICE_CPP11_MAPPING
: public IceUtil::noncopyable
#endif // !ICE_CPP11_MAPPING
Expand Down
1 change: 0 additions & 1 deletion cpp/include/IceUtil/ScannerConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
# pragma clang diagnostic ignored "-Wunused-but-set-variable"
#endif


#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wunused-function"
# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
Expand Down
1 change: 0 additions & 1 deletion cpp/src/Glacier2/Instrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
namespace Glacier2
{


namespace Instrumentation
{

Expand Down
1 change: 0 additions & 1 deletion cpp/src/IceGrid/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,3 @@ IceGrid::secondsToInt(const std::chrono::seconds& sec)
{
return chrono::duration_cast<chrono::duration<int>>(sec).count();
}

2 changes: 1 addition & 1 deletion cpp/src/IcePatch2Lib/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ IcePatch2Internal::writeFileInfo(FILE* fp, const LargeFileInfo& info)
"%s\t%s\t" ICE_INT64_FORMAT "\t%d\n",
#endif
IceUtilInternal::escapeString(
info.path, "",
info.path, "",
#ifdef ICE_CPP11_MAPPING
IceUtilInternal::ToStringMode::Compat
#else
Expand Down
1 change: 0 additions & 1 deletion cpp/src/IceStorm/Instrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
namespace IceStorm
{


namespace Instrumentation
{

Expand Down
6 changes: 3 additions & 3 deletions cpp/src/Slice/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ Slice::Container::createClassDef(const string& name, int id, const ClassDefPtr&
if(differsOnlyInCase)
{
ostringstream os;
os << "class definition `" << name << "' is capitalized inconsistently with its previous name: `"
os << "class definition `" << name << "' is capitalized inconsistently with its previous name: `"
<< def->name() << "'";
_unit->error(os.str());
}
Expand Down Expand Up @@ -2563,7 +2563,7 @@ Slice::Container::checkIntroduced(const string& scoped, ContainedPtr namedThing)
}

_unit->error("`" + firstComponent + "' has changed meaning");

return false;
}
}
Expand Down Expand Up @@ -4944,7 +4944,7 @@ ParamDeclList
Slice::Operation::outParameters() const
{
ParamDeclList result;

for(const auto& p : _contents)
{
ParamDeclPtr q = dynamic_pointer_cast<ParamDecl>(p);
Expand Down
2 changes: 0 additions & 2 deletions cpp/src/Slice/Preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class Preprocessor

private:



bool checkInputFile();

const std::string _path;
Expand Down
1 change: 0 additions & 1 deletion cpp/src/slice2php/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ getAbsolute(const ContainedPtr& cont, const string& pfx = std::string(), const s

}


// CodeVisitor generates the PHP mapping for a translation unit.
class CodeVisitor : public ParserVisitor
{
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/IceGrid/allocation/PermissionsVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ class Server : public Test::TestHelper
}
};

DEFINE_TEST(Server)
DEFINE_TEST(Server)
1 change: 0 additions & 1 deletion cpp/test/IceGrid/session/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ class NodeObserverI final : public NodeObserver, public ObserverBase
return;
}


lock_guard<mutex> lg(_mutex);
//cerr << node << " " << info.id << " " << info.state << " " << info.pid << endl;
ServerDynamicInfoSeq& servers = nodes[node].servers;
Expand Down
1 change: 0 additions & 1 deletion cpp/test/IceGrid/session/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class ClientPermissionsVerifierI final : public Glacier2::PermissionsVerifier
{
public:


bool
checkPermissions(string userId, string passwd, string&, const Ice::Current& current) const override
{
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/IceGrid/update/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ allTests(Test::TestHelper* helper)
try
{
test(
admin->getServerInfo("Server").node == "node-2" &&
admin->getServerInfo("Server").node == "node-2" &&
admin->getServerState("Server") == ServerState::Inactive);

admin->startServer("Server");
Expand Down
1 change: 0 additions & 1 deletion cpp/test/IceSSL/certs/ca.crl.pem
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ cuRYxC04NmEeAaLDoNDYaFQUcc1Y80XqXhEdQhLAjZX45m26zcTHNgnuzIFWl+IH
Hdc+qc3B379K7phWfugzXEk+IT0V58tUQjly1TzcltC5UhS2OMRs5eWgTKki3hnt
+Vqf5naZDZdjMB8nbcl2Qh6NmUz0oxNC3g1L4Bex7/qAaiA=
-----END X509 CRL-----

2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca1/ca.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256"}
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256"}
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256"}
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca2/ca.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256"}
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca3/ca.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256", "crlDistributionPoints": "http://127.0.0.1:20001/ca3.crl.pem"}
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256", "crlDistributionPoints": "http://127.0.0.1:20001/ca3.crl.pem"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca3/crlnumber.old
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00
00
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256", "crlDistributionPoints": "http://127.0.0.1:20001/cai3.crl.pem"}
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256", "crlDistributionPoints": "http://127.0.0.1:20001/cai3.crl.pem"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca3/intermediate1/crlnumber.old
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00
00
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca4/ca.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256", "ocspResponder": "http://127.0.0.1:20002", "caIssuers": "http://127.0.0.1:20001/cacert4.der"}
{"validity": 825, "keysize": 2048, "keyalg": "rsa", "sigalg": "sha256", "ocspResponder": "http://127.0.0.1:20002", "caIssuers": "http://127.0.0.1:20001/cacert4.der"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca4/crlnumber.old
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00
00
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256", "ocspResponder": "http://127.0.0.1:20002", "caIssuers": "http://127.0.0.1:20001/cai4.der"}
{"validity": 825, "keysize": 2048, "keyalg": 6, "sigalg": "sha256", "ocspResponder": "http://127.0.0.1:20002", "caIssuers": "http://127.0.0.1:20001/cai4.der"}
2 changes: 1 addition & 1 deletion cpp/test/IceSSL/certs/db/ca4/intermediate1/crlnumber.old
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00
00
Loading

0 comments on commit 3e8804a

Please sign in to comment.