@@ -8,7 +8,7 @@ FilePattern::FilePattern(const std::string& path, const std::string& filePattern
88
99 FilePatternFactory fpf = FilePatternFactory ();
1010
11- this ->fp_ = std::unique_ptr<PatternObject>(fpf.getObject (path, filePattern, block_size, recursive, suppressWarnings, std::vector<std::string>{} ));
11+ this ->fp_ = std::unique_ptr<PatternObject>(fpf.getObject (path, filePattern, block_size, recursive, suppressWarnings));
1212
1313 if (block_size != " " ) {
1414 this ->fp_ ->external = true ;
@@ -22,7 +22,7 @@ FilePattern::FilePattern(const std::vector<std::string>& file_array, const std::
2222
2323 FilePatternFactory fpf = FilePatternFactory ();
2424
25- this ->fp_ = std::unique_ptr<PatternObject>(fpf.getObject (" " , filePattern, " " , recursive, suppressWarnings, file_array ));
25+ this ->fp_ = std::unique_ptr<PatternObject>(fpf.getObject (file_array , filePattern, suppressWarnings));
2626
2727 this ->fp_ ->external = false ;
2828
@@ -134,12 +134,12 @@ std::string FilePattern::inferPattern(const std::string& path, std::string& vari
134134
135135 // create dummy object to avoid the need for static methods in virtual class
136136 std::unique_ptr<PatternObject> fp;
137- std::vector<std::string> empty; // TODO: implement infer pattern for a vector
137+
138138 if (block_size == " " ) {
139- fp = std::unique_ptr<PatternObject>(fpf.getObject (path, " " , block_size, false , true , empty ));
139+ fp = std::unique_ptr<PatternObject>(fpf.getObject (path, " " , block_size, false , true ));
140140 } else {
141141
142- fp = std::unique_ptr<PatternObject>(fpf.getObject (path, " " , block_size, false , true , empty ));
142+ fp = std::unique_ptr<PatternObject>(fpf.getObject (path, " " , block_size, false , true ));
143143 }
144144
145145
@@ -149,8 +149,8 @@ std::string FilePattern::inferPattern(const std::string& path, std::string& vari
149149std::string FilePattern::inferPattern (std::vector<std::string>& vec, std::string& variables) {
150150
151151 FilePatternFactory fpf = FilePatternFactory ();
152- std::vector<std::string> empty;
153- std::unique_ptr<PatternObject> fp = std::unique_ptr<PatternObject>(fpf.getObject (" ." , " dummy_pattern" , " " , false , true , empty ));
152+
153+ std::unique_ptr<PatternObject> fp = std::unique_ptr<PatternObject>(fpf.getObject (" ." , " dummy_pattern" , " " , false , true ));
154154
155155 return fp->inferPattern (vec, variables);
156156}
0 commit comments