Skip to content

Commit d6b155f

Browse files
committed
Add const
1 parent d0eb151 commit d6b155f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/core/raster/qgsrasterinterface.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class QgsRasterInterface
8080
virtual QgsRasterInterface * input() const;
8181

8282
/** Is on/off */
83-
virtual bool on();
83+
virtual bool on() const;
8484

8585
/** Set on/off */
8686
virtual void setOn( bool on );

src/core/raster/qgsrasterinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class CORE_EXPORT QgsRasterInterface
111111
virtual QgsRasterInterface * input() const { return mInput; }
112112

113113
/** Is on/off */
114-
virtual bool on() { return mOn; }
114+
virtual bool on() const { return mOn; }
115115

116116
/** Set on/off */
117117
virtual void setOn( bool on ) { mOn = on; }

0 commit comments

Comments
 (0)