aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-02 00:16:57 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-02 00:16:57 +0000
commitd3976a1bc06b6a8d019fdbc9edeff99acf81b838 (patch)
tree450ff5b9d0d3d47d62097c4b75b92f9ee27e8722
parentf8846504c79bc547c2dadbd48b91767594328d20 (diff)
Fix for Win7 bench compiler error/warning
git-svn-id: http://skia.googlecode.com/svn/trunk@9855 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--bench/PathUtilsBench.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/PathUtilsBench.cpp b/bench/PathUtilsBench.cpp
index 6cbbb315ac..a53a1f59d2 100644
--- a/bench/PathUtilsBench.cpp
+++ b/bench/PathUtilsBench.cpp
@@ -18,8 +18,7 @@
//this function is redefined for sample, test, and bench. is there anywhere
// I can put it to avoid code duplcation?
static void fillRandomBits( int chars, char* bits ){
- SkTime time;
- SkMWCRandom rand = SkMWCRandom( time.GetMSecs() );
+ SkMWCRandom rand(SkTime::GetMSecs());
for (int i = 0; i < chars; ++i){
bits[i] = rand.nextU();