Skip to content

Commit 0398d53

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal readability-braces-around-statements in xplat/ocean/impl/application
Reviewed By: dtolnay Differential Revision: D79333917 fbshipit-source-id: 8b55456e42bdac6ed5183f183a251d6423cb8f4d
1 parent 9c3a041 commit 0398d53

7 files changed

Lines changed: 22 additions & 12 deletions

File tree

impl/application/ocean/shark/android/NativeInterfaceShark.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jboolean Java_com_meta_ocean_app_shark_android_NativeInterfaceShark_loadScene(JN
2828
{
2929
const std::string sceneFilename(filenamePtr);
3030

31-
if (!sceneFilename.empty())
31+
if (!sceneFilename.empty()) {
3232
result = GLMainView::get<GLMainView>().loadScene(sceneFilename, replace);
33+
}
3334

3435
env->ReleaseStringUTFChars(filename, filenamePtr);
3536
}

impl/application/ocean/test/cv/testcv/testopencv/TestCVOpenCV.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ using namespace Ocean;
144144

145145
try
146146
{
147-
if (Test::TestCV::TestOpenCV::testCVOpenCV(testDuration, mediaFilename, functionList))
147+
if (Test::TestCV::TestOpenCV::testCVOpenCV(testDuration, mediaFilename, functionList)) {
148148
resultValue = 0;
149+
}
149150
}
150151
catch (const std::exception& exception)
151152
{

impl/application/ocean/test/geometry/testgeometry/TestGeometry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ using namespace Ocean;
128128

129129
try
130130
{
131-
if (Test::TestGeometry::testGeometry(testDuration, worker, functionList))
131+
if (Test::TestGeometry::testGeometry(testDuration, worker, functionList)) {
132132
resultValue = 0;
133+
}
133134
}
134135
catch (...)
135136
{

impl/application/ocean/test/media/testmedia/TestMedia.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ using namespace Ocean;
131131

132132
try
133133
{
134-
if (Test::TestMedia::testMedia(testDuration, worker, functionList))
134+
if (Test::TestMedia::testMedia(testDuration, worker, functionList)) {
135135
resultValue = 0;
136+
}
136137
}
137138
catch(...)
138139
{

impl/application/ocean/test/platform/testplatform/TestPlatform.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ using namespace Ocean;
131131

132132
try
133133
{
134-
if (Test::TestPlatform::testPlatform(testDuration, worker, functionList))
134+
if (Test::TestPlatform::testPlatform(testDuration, worker, functionList)) {
135135
resultValue = 0;
136+
}
136137
}
137138
catch(...)
138139
{

impl/application/ocean/test/testocean/TestOcean.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,23 @@ using namespace Ocean;
101101

102102
const std::string file(String::trim(String::toAString(argv[1]), '\"'));
103103

104-
if (!file.empty())
104+
if (!file.empty()) {
105105
mediaFilename = file;
106+
}
106107
}
107108

108109
if (argc >= 3)
109110
{
110111
const std::string file(String::trim(String::toAString(argv[2])));
111112

112-
if (!file.empty())
113+
if (!file.empty()) {
113114
outputFilename = file;
115+
}
114116
}
115117

116-
if (argc >= 4)
118+
if (argc >= 4) {
117119
libraryList = String::trim(String::toAString(argv[3]));
120+
}
118121

119122
if (argc >= 5)
120123
{
@@ -123,14 +126,15 @@ using namespace Ocean;
123126
if (!duration.empty())
124127
{
125128
const double value = atof(duration.c_str());
126-
if (value > 0)
129+
if (value > 0) {
127130
testDuration = value;
131+
}
128132
}
129133
}
130134

131-
if (outputFilename.empty() || outputFilename == "STANDARD")
135+
if (outputFilename.empty() || outputFilename == "STANDARD") {
132136
Messenger::get().setOutputType(Messenger::OUTPUT_STANDARD);
133-
else
137+
} else
134138
{
135139
Messenger::get().setOutputType(Messenger::OUTPUT_FILE);
136140
Messenger::get().setFileOutput(outputFilename);

impl/application/ocean/test/tracking/testtracking/TestTracking.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ using namespace Ocean;
131131

132132
try
133133
{
134-
if (Test::TestTracking::testTracking(testDuration, worker, functionList))
134+
if (Test::TestTracking::testTracking(testDuration, worker, functionList)) {
135135
resultValue = 0;
136+
}
136137
}
137138
catch (...)
138139
{

0 commit comments

Comments
 (0)