Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1189)

Unified Diff: Source/core/platform/animation/TimingFunction.h

Issue 47623002: Fix more warnings on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/platform/graphics/chromium/ImageDecodingStore.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/animation/TimingFunction.h
diff --git a/Source/core/platform/animation/TimingFunction.h b/Source/core/platform/animation/TimingFunction.h
index 39ce2b40bfc6523cd492ae701eefefc41c698288..71608fdbf6528c6c451199672159b5094b9b0c0c 100644
--- a/Source/core/platform/animation/TimingFunction.h
+++ b/Source/core/platform/animation/TimingFunction.h
@@ -274,7 +274,7 @@ public:
RELEASE_ASSERT_WITH_MESSAGE(fraction >= 0 && fraction <= 1, "Web Animations not yet implemented: Timing function behavior outside the range [0, 1] is not yet specified");
ASSERT(!m_segments.isEmpty());
ASSERT(m_segments.last().max() == 1);
- const Segment* segment;
+ const Segment* segment = 0;
Inactive 2013/10/29 13:56:20 Maybe we could rewrite this so that it looks less
for (size_t i = 0; i < m_segments.size(); ++i) {
segment = &m_segments[i];
if (fraction < segment->max())
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/platform/graphics/chromium/ImageDecodingStore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698