Timeline: const-ref path arg in constructor, docs

This commit is contained in:
FeRD (Frank Dana)
2020-06-08 16:07:55 -04:00
parent 96d84311c6
commit 3f13ed87f0
2 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ Timeline::Timeline(int width, int height, Fraction fps, int sample_rate, int cha
}
// Constructor for the timeline (which loads a JSON structure from a file path, and initializes a timeline)
Timeline::Timeline(std::string projectPath, bool convert_absolute_paths) :
Timeline::Timeline(const std::string& projectPath, bool convert_absolute_paths) :
is_open(false), auto_map_clips(true), managed_cache(true), path(projectPath) {
// Create CrashHandler and Attach (incase of errors)