mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 09:30:02 +02:00
clang-tidy string init
This commit is contained in:
parent
9c26cd5552
commit
7388bb4aa7
@ -218,7 +218,7 @@ template <typename T> class SharedMemory {
|
|||||||
std::string ConstructSharedMemoryName(int multiId, int slsId) {
|
std::string ConstructSharedMemoryName(int multiId, int slsId) {
|
||||||
|
|
||||||
// using environment path
|
// using environment path
|
||||||
std::string sEnvPath = "";
|
std::string sEnvPath;
|
||||||
char *envpath = getenv(SHM_ENV_NAME);
|
char *envpath = getenv(SHM_ENV_NAME);
|
||||||
if (envpath != nullptr) {
|
if (envpath != nullptr) {
|
||||||
sEnvPath.assign(envpath);
|
sEnvPath.assign(envpath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user