summaryrefslogtreecommitdiff
path: root/external/skia/c++20-comparison.patch.0
blob: 86f0d7ff16e015bede0bf12612b2a1815364f80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/shaders/SkLights.h
+++ src/shaders/SkLights.h
@@ -80,14 +80,14 @@
             return *this;
         }
 
-        bool operator==(const Light& other) {
+        bool operator==(const Light& other) const {
             return (fType      == other.fType) &&
                    (fColor     == other.fColor) &&
                    (fDirOrPos  == other.fDirOrPos) &&
                    (fIntensity == other.fIntensity);
         }
 
-        bool operator!=(const Light& other) { return !(this->operator==(other)); }
+        bool operator!=(const Light& other) const { return !(this->operator==(other)); }
 
     private:
         friend class SkLights;