Skip to content

Commit ceaafa6

Browse files
committed
ClangFormat changed files
1 parent 76e4435 commit ceaafa6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/platform/Linux/PosixConfig.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ bool PosixConfig::ConfigValueExists(Key key)
454454
return storage->HasValue(key.Name);
455455
}
456456

457-
std::string PosixConfig::GetFilePath(const std::string &defaultFileName)
457+
std::string PosixConfig::GetFilePath(const std::string & defaultFileName)
458458
{
459459
// Match what GetFilename in ExamplePersistentStorage.cpp does.
460-
const char *dir = std::getenv("TMPDIR");
460+
const char * dir = std::getenv("TMPDIR");
461461
if (dir == nullptr)
462462
{
463463
dir = "/tmp";
@@ -474,21 +474,21 @@ CHIP_ERROR PosixConfig::EnsureNamespace(const char * ns)
474474

475475
if (strcmp(ns, kConfigNamespace_ChipFactory) == 0)
476476
{
477-
storage = &gChipLinuxFactoryStorage;
477+
storage = &gChipLinuxFactoryStorage;
478478
std::string filePath = GetFilePath(CHIP_DEFAULT_FACTORY_FILE_NAME);
479-
err = storage->Init(filePath.c_str());
479+
err = storage->Init(filePath.c_str());
480480
}
481481
else if (strcmp(ns, kConfigNamespace_ChipConfig) == 0)
482482
{
483-
storage = &gChipLinuxConfigStorage;
483+
storage = &gChipLinuxConfigStorage;
484484
std::string filePath = GetFilePath(CHIP_DEFAULT_CONFIG_FILE_NAME);
485-
err = storage->Init(filePath.c_str());
485+
err = storage->Init(filePath.c_str());
486486
}
487487
else if (strcmp(ns, kConfigNamespace_ChipCounters) == 0)
488488
{
489-
storage = &gChipLinuxCountersStorage;
489+
storage = &gChipLinuxCountersStorage;
490490
std::string filePath = GetFilePath(CHIP_DEFAULT_DATA_FILE_NAME);
491-
err = storage->Init(filePath.c_str());
491+
err = storage->Init(filePath.c_str());
492492
}
493493

494494
SuccessOrExit(err);

src/platform/Linux/PosixConfig.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
#pragma once
2525

26-
#include <functional>
27-
#include <string>
2826
#include <filesystem>
27+
#include <functional>
2928
#include <inttypes.h>
29+
#include <string>
3030

3131
#include <lib/core/CHIPError.h>
3232

@@ -113,7 +113,7 @@ class PosixConfig
113113

114114
private:
115115
static ChipLinuxStorage * GetStorageForNamespace(Key key);
116-
static std::string GetFilePath(const std::string &defaultFileName);
116+
static std::string GetFilePath(const std::string & defaultFileName);
117117
};
118118

119119
struct PosixConfig::Key

0 commit comments

Comments
 (0)