File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1270,7 +1270,7 @@ ERR findfile(std::string &Path)
1270
1270
1271
1271
auto len = Path.find_last_of (" :/\\ " );
1272
1272
auto folder = (len IS std::string::npos) ? " " : Path.substr (0 , len);
1273
- auto name = (len IS std::string::npos) ? Path : Path.substr ( len+ 1 );
1273
+ auto name = (len IS std::string::npos) ? std::string_view ( Path) : std::string_view ( Path.c_str () + len + 1 );
1274
1274
1275
1275
// Scan the files at the Path to find a similar filename (ignore the filename extension).
1276
1276
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ class filter_bitmap {
284
284
285
285
};
286
286
287
- # define TB_NOISE 1
287
+ constexpr LONG TB_NOISE = 1 ;
288
288
289
289
#include < parasol/modules/vector.h>
290
290
@@ -297,7 +297,7 @@ class FeedbackSubscription {
297
297
298
298
// ********************************************************************************************************************
299
299
300
- # define MAX_TRANSITION_STOPS 10
300
+ constexpr LONG MAX_TRANSITION_STOPS = 10 ;
301
301
302
302
struct TransitionStop { // Passed to the Stops field.
303
303
DOUBLE Offset;
You can’t perform that action at this time.
0 commit comments