Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
25f21546
Commit
25f21546
authored
Jan 10, 2011
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(minor)
parent
dfc7b1f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/util/regex.hpp
src/util/regex.hpp
+2
-2
src/util/rotation.cpp
src/util/rotation.cpp
+1
-1
No files found.
src/util/regex.hpp
View file @
25f21546
...
...
@@ -61,8 +61,8 @@
inline
bool
matches
(
const
String
&
str
)
const
{
return
regex_search
(
str
.
begin
(),
str
.
end
(),
regex
);
}
inline
bool
matches
(
Results
&
results
,
const
String
&
str
)
const
{
return
matches
(
results
,
str
.
begin
(),
str
.
end
());
inline
bool
matches
(
Results
&
results
,
const
String
&
str
,
size_t
start
=
0
)
const
{
return
matches
(
results
,
str
.
begin
()
+
start
,
str
.
end
());
}
inline
bool
matches
(
Results
&
results
,
const
String
::
const_iterator
&
begin
,
const
String
::
const_iterator
&
end
)
const
{
return
regex_search
(
begin
,
end
,
results
,
regex
);
...
...
src/util/rotation.cpp
View file @
25f21546
...
...
@@ -75,9 +75,9 @@ RealSize Rotation::trSizeToBB(const RealSize& size) const {
}
RealRect
Rotation
::
trRectToBB
(
const
RealRect
&
r
)
const
{
const
bool
special_case_optimization
=
false
;
double
x
=
r
.
x
*
zoomX
,
y
=
r
.
y
*
zoomY
;
double
w
=
r
.
width
*
zoomX
,
h
=
r
.
height
*
zoomY
;
const
bool
special_case_optimization
=
false
;
if
(
special_case_optimization
&&
is_rad0
(
angle
))
{
return
RealRect
(
origin
.
x
+
x
,
origin
.
y
+
y
,
w
,
h
);
}
else
if
(
special_case_optimization
&&
is_rad180
(
angle
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment