Commit 25f21546 authored by twanvl's avatar twanvl

(minor)

parent dfc7b1f9
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
inline bool matches(const String& str) const { inline bool matches(const String& str) const {
return regex_search(str.begin(), str.end(), regex); return regex_search(str.begin(), str.end(), regex);
} }
inline bool matches(Results& results, const String& str) const { inline bool matches(Results& results, const String& str, size_t start = 0) const {
return matches(results, str.begin(), str.end()); return matches(results, str.begin() + start, str.end());
} }
inline bool matches(Results& results, const String::const_iterator& begin, const String::const_iterator& end) const { inline bool matches(Results& results, const String::const_iterator& begin, const String::const_iterator& end) const {
return regex_search(begin, end, results, regex); return regex_search(begin, end, results, regex);
......
...@@ -75,9 +75,9 @@ RealSize Rotation::trSizeToBB(const RealSize& size) const { ...@@ -75,9 +75,9 @@ RealSize Rotation::trSizeToBB(const RealSize& size) const {
} }
RealRect Rotation::trRectToBB(const RealRect& r) const { RealRect Rotation::trRectToBB(const RealRect& r) const {
const bool special_case_optimization = false;
double x = r.x * zoomX, y = r.y * zoomY; double x = r.x * zoomX, y = r.y * zoomY;
double w = r.width * zoomX, h = r.height * zoomY; double w = r.width * zoomX, h = r.height * zoomY;
const bool special_case_optimization = false;
if (special_case_optimization && is_rad0(angle)) { if (special_case_optimization && is_rad0(angle)) {
return RealRect(origin.x + x, origin.y + y, w, h); return RealRect(origin.x + x, origin.y + y, w, h);
} else if (special_case_optimization && is_rad180(angle)) { } else if (special_case_optimization && is_rad180(angle)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment