commit bf8d5e1be36fdb69c3c83cec6c602e768dee14f7
parent 7e6f7470dba596664ff12ccb6570160d5dd02c83
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Tue, 28 Jul 2015 22:25:40 +0200
Improve const-correctness in the filename.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dcalendar.d b/dcalendar.d
@@ -5,10 +5,10 @@ import std.datetime;
import std.string;
class Calendar{
- private string filename;
+ private immutable string filename;
private File f;
private static char buf[6];
- this(string filename){
+ this(in string filename){
this.filename=filename;
}
public void open(){