summaryrefslogtreecommitdiff
path: root/test/media_device/media_device_print_test.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-04 18:56:45 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-18 02:27:48 +0200
commit918bfb3c3dbaecb2df10fb24da9c68737f4948c1 (patch)
tree0e26bfcaee4a7250b2f1f83db55d887c43c493bd /test/media_device/media_device_print_test.cpp
parentd312d0ba10f3740d45b50ef8bcfc48e751e694fc (diff)
libcamera: Remove space between empty curly brackets
Remove spaces between empty curly brackets (replacing { } with {}) to comply with the coding style. Fix one other coding style violation on the lines touched by those fixes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/media_device/media_device_print_test.cpp')
-rw-r--r--test/media_device/media_device_print_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/media_device/media_device_print_test.cpp b/test/media_device/media_device_print_test.cpp
index 8dd8a151..5018906c 100644
--- a/test/media_device/media_device_print_test.cpp
+++ b/test/media_device/media_device_print_test.cpp
@@ -26,13 +26,13 @@ using namespace std;
class MediaDevicePrintTest : public Test
{
public:
- MediaDevicePrintTest() { }
- ~MediaDevicePrintTest() { }
+ MediaDevicePrintTest() {}
+ ~MediaDevicePrintTest() {}
protected:
int init() { return 0; }
int run();
- void cleanup() { }
+ void cleanup() {}
private:
int testMediaDevice(string deviceNode);
@@ -137,7 +137,7 @@ int MediaDevicePrintTest::run()
*/
for (i = 0; i < MAX_MEDIA_DEV; i++) {
string mediadev = deviceNode + to_string(i);
- struct stat pstat = { };
+ struct stat pstat = {};
if (stat(mediadev.c_str(), &pstat))
continue;