Skip to content

Commit 7f6bf22

Browse files
committed
clang-tidy requested changes
Signed-off-by: Osama <osama21@aucegypt.edu>
1 parent 72805ae commit 7f6bf22

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/odb/include/odb/dbTypes.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ class dbOrientType
102102
class dbOrientType3D
103103
{
104104
public:
105-
static std::optional<dbOrientType3D> fromString(const std::string orient);
105+
static std::optional<dbOrientType3D> fromString(const std::string& orient);
106106

107-
dbOrientType3D(const std::string orient);
108-
109-
dbOrientType3D(const char* orient);
107+
dbOrientType3D(const std::string& orient);
110108

111109
///
112110
/// Create a dbOrientType3D instance with an explicit orientation.

src/odb/src/db/dbTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ bool dbOrientType::isRightAngleRotation() const
189189
}
190190

191191
std::optional<dbOrientType3D> dbOrientType3D::fromString(
192-
const std::string orient)
192+
const std::string& orient)
193193
{
194194
std::string orient_str = orient;
195195
bool mirror_z = false;
@@ -208,7 +208,7 @@ std::optional<dbOrientType3D> dbOrientType3D::fromString(
208208
return dbOrientType3D(opt.value(), mirror_z);
209209
}
210210

211-
dbOrientType3D::dbOrientType3D(const char* orient)
211+
dbOrientType3D::dbOrientType3D(const std::string& orient)
212212
{
213213
auto opt = fromString(orient);
214214
if (opt.has_value()) {

0 commit comments

Comments
 (0)