Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12ed239

Browse filesBrowse files
authored
Merge pull request #19330 from QuLogic/remove-register
Remove register storage class from Agg files.
2 parents f151d1a + e8fe99a commit 12ed239
Copy full SHA for 12ed239

File tree

Expand file treeCollapse file tree

4 files changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+9
-9
lines changed

‎extern/agg24-svn/include/agg_basics.h

Copy file name to clipboardExpand all lines: extern/agg24-svn/include/agg_basics.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ namespace agg
228228
{
229229
AGG_INLINE static unsigned mul(unsigned a, unsigned b)
230230
{
231-
register unsigned q = a * b + (1 << (Shift-1));
231+
unsigned q = a * b + (1 << (Shift-1));
232232
return (q + (q >> Shift)) >> Shift;
233233
}
234234
};

‎extern/agg24-svn/include/agg_image_accessors.h

Copy file name to clipboardExpand all lines: extern/agg24-svn/include/agg_image_accessors.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ namespace agg
174174
private:
175175
AGG_INLINE const int8u* pixel() const
176176
{
177-
register int x = m_x;
178-
register int y = m_y;
177+
int x = m_x;
178+
int y = m_y;
179179
if(x < 0) x = 0;
180180
if(y < 0) y = 0;
181181
if(x >= (int)m_pixf->width()) x = m_pixf->width() - 1;

‎extern/agg24-svn/include/agg_trans_affine.h

Copy file name to clipboardExpand all lines: extern/agg24-svn/include/agg_trans_affine.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,25 +292,25 @@ namespace agg
292292
//------------------------------------------------------------------------
293293
inline void trans_affine::transform(double* x, double* y) const
294294
{
295-
register double tmp = *x;
295+
double tmp = *x;
296296
*x = tmp * sx + *y * shx + tx;
297297
*y = tmp * shy + *y * sy + ty;
298298
}
299299

300300
//------------------------------------------------------------------------
301301
inline void trans_affine::transform_2x2(double* x, double* y) const
302302
{
303-
register double tmp = *x;
303+
double tmp = *x;
304304
*x = tmp * sx + *y * shx;
305305
*y = tmp * shy + *y * sy;
306306
}
307307

308308
//------------------------------------------------------------------------
309309
inline void trans_affine::inverse_transform(double* x, double* y) const
310310
{
311-
register double d = determinant_reciprocal();
312-
register double a = (*x - tx) * d;
313-
register double b = (*y - ty) * d;
311+
double d = determinant_reciprocal();
312+
double a = (*x - tx) * d;
313+
double b = (*y - ty) * d;
314314
*x = a * sy - b * shx;
315315
*y = b * sx - a * shy;
316316
}

‎extern/agg24-svn/src/platform/win32/agg_platform_support.cpp

Copy file name to clipboardExpand all lines: extern/agg24-svn/src/platform/win32/agg_platform_support.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ namespace agg
14801480
tok.len = 0;
14811481
if(m_src_string == 0 || m_start == -1) return tok;
14821482

1483-
register const char *pstr = m_src_string + m_start;
1483+
const char *pstr = m_src_string + m_start;
14841484

14851485
if(*pstr == 0)
14861486
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.