File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < cfloat>
4
3
#include < filesystem>
5
- #include < string>
6
4
7
5
namespace Utils
8
6
{
9
7
10
- inline std::string PathFromRoot (std::string relativePath)
8
+ inline std::string PathFromRoot (std::string_view relativePath)
11
9
{
12
- return (std::filesystem::path (FRAME_ROOT_PATH) / std::move ( relativePath) ).generic_string ();
10
+ return (std::filesystem::path (FRAME_ROOT_PATH) / relativePath).generic_string ();
13
11
}
14
12
15
- inline std::string PathFromAsset (std::string relativePath)
13
+ inline std::string PathFromAsset (std::string_view relativePath)
16
14
{
17
- return (std::filesystem::path (FRAME_ASSET_PATH) / std::move ( relativePath) ).generic_string ();
15
+ return (std::filesystem::path (FRAME_ASSET_PATH) / relativePath).generic_string ();
18
16
}
19
17
20
18
inline bool FloatEqual (const float a, const float b, const float EPSILON = FLT_EPSILON)
You can’t perform that action at this time.
0 commit comments