summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmagick/Color.d2
-rw-r--r--dmagick/ImageView.d2
2 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/Color.d b/dmagick/Color.d
index cb17cf0..0813dc2 100644
--- a/dmagick/Color.d
+++ b/dmagick/Color.d
@@ -106,7 +106,7 @@ class Color
/**
* Returns the value as a hex string.
*/
- override string toString()
+ override string toString() const
{
static if ( MagickQuantumDepth == 8 )
string frm = "%02X";
diff --git a/dmagick/ImageView.d b/dmagick/ImageView.d
index b390aaa..d464588 100644
--- a/dmagick/ImageView.d
+++ b/dmagick/ImageView.d
@@ -157,7 +157,7 @@ class ImageView
* Support the usage of foreach to loop over the rows in the view.
* The foreach is executed in parallel.
*/
- int opApply(int delegate(ref Pixels) dg)
+ int opApply(int delegate(Pixels) dg)
{
shared(int) progress;