use new enum-constructors
git-svn-id: http://skia.googlecode.com/svn/trunk@6744 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp
index f76f405..bc67fa0 100644
--- a/src/utils/SkMatrix44.cpp
+++ b/src/utils/SkMatrix44.cpp
@@ -186,8 +186,8 @@
///////////////////////////////////////////////////////////////////////////////
const SkMatrix44& SkMatrix44::I() {
- static SkMatrix44 gIdentity;
- return gIdentity;
+ static const SkMatrix44 gIdentity44(kIdentity_Constructor);
+ return gIdentity44;
}
void SkMatrix44::setIdentity() {
@@ -277,7 +277,7 @@
return;
}
- SkMatrix44 tmp;
+ SkMatrix44 tmp(kUninitialized_Constructor);
tmp.setScale(sx, sy, sz);
this->preConcat(tmp);
}