File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,9 @@ class dbOrientType
102102class 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.
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ bool dbOrientType::isRightAngleRotation() const
189189}
190190
191191std::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 ()) {
You can’t perform that action at this time.
0 commit comments