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>
This commit is contained in:
parent
d312d0ba10
commit
918bfb3c3d
5 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue