From 12670eb63b743283cf6f0e6e568c1713756e4006 Mon Sep 17 00:00:00 2001 From: deanm Date: Tue, 26 Apr 2016 14:09:01 -0700 Subject: pathops: Add missing header guards in two files. Guards were missing in SkIntersectionHelper.h and SkPathOpsTSect.h. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1914873002 Review URL: https://codereview.chromium.org/1914873002 --- src/pathops/SkIntersectionHelper.h | 5 +++++ src/pathops/SkPathOpsTSect.h | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'src/pathops') diff --git a/src/pathops/SkIntersectionHelper.h b/src/pathops/SkIntersectionHelper.h index 647b94b35f..9a8a582af6 100644 --- a/src/pathops/SkIntersectionHelper.h +++ b/src/pathops/SkIntersectionHelper.h @@ -4,6 +4,9 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ +#ifndef SkIntersectionHelper_DEFINED +#define SkIntersectionHelper_DEFINED + #include "SkOpContour.h" #include "SkOpSegment.h" #include "SkPath.h" @@ -106,3 +109,5 @@ public: private: SkOpSegment* fSegment; }; + +#endif diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h index 074fe37654..01ab8c6590 100644 --- a/src/pathops/SkPathOpsTSect.h +++ b/src/pathops/SkPathOpsTSect.h @@ -4,6 +4,8 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ +#ifndef SkPathOpsTSect_DEFINED +#define SkPathOpsTSect_DEFINED #include "SkChunkAlloc.h" #include "SkPathOpsBounds.h" @@ -2241,3 +2243,5 @@ void SkTSect::BinarySearch(SkTSect* sect1, } SkASSERT(intersections->used() <= TCurve::kMaxIntersections); } + +#endif -- cgit v1.2.3