aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-10 21:21:27 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-10 21:21:27 +0000
commit1adad343b9ee010a5adc07a369bd98cb25062e5d (patch)
treecc7ea2fd73fcf477de76426598953ac5abf57257 /src
parentef818a470ef7ea28ad8f70ef77bb658458cee48a (diff)
use new enum-constructors
git-svn-id: http://skia.googlecode.com/svn/trunk@6744 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/utils/SkMatrix44.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp
index f76f405c07..bc67fa0bd3 100644
--- a/src/utils/SkMatrix44.cpp
+++ b/src/utils/SkMatrix44.cpp
@@ -186,8 +186,8 @@ void SkMatrix44::setRowMajord(const double src[]) {
///////////////////////////////////////////////////////////////////////////////
const SkMatrix44& SkMatrix44::I() {
- static SkMatrix44 gIdentity;
- return gIdentity;
+ static const SkMatrix44 gIdentity44(kIdentity_Constructor);
+ return gIdentity44;
}
void SkMatrix44::setIdentity() {
@@ -277,7 +277,7 @@ void SkMatrix44::preScale(SkMScalar sx, SkMScalar sy, SkMScalar sz) {
return;
}
- SkMatrix44 tmp;
+ SkMatrix44 tmp(kUninitialized_Constructor);
tmp.setScale(sx, sy, sz);
this->preConcat(tmp);
}