Skip to content

Commit

Permalink
cpp: fix pcre type ref
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Nov 13, 2021
1 parent 1d48f53 commit 24e7133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/private/sequence_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool getSingleFrameMatch(SeqPatternMatch &match, const std::string &path, bool r
static const pcrecpp::RE* s_rxSingleFrame = new pcrecpp::RE(s_singleFramePattern.c_str());
static const pcrecpp::RE* s_rxOptionalFrame = new pcrecpp::RE(s_optionalFramePattern.c_str());

const std::regex &rx = require_frame ? s_rxSingleFrame : s_rxOptionalFrame;
const pcrecpp::RE* &rx = require_frame ? s_rxSingleFrame : s_rxOptionalFrame;
return rx->FullMatch(path, &(match.base), &(match.range), &(match.ext));

#endif
Expand Down

0 comments on commit 24e7133

Please sign in to comment.