Pass string as a const reference.
diff --git a/include/json/writer.h b/include/json/writer.h
index 30424b0..7c9ae21 100644
--- a/include/json/writer.h
+++ b/include/json/writer.h
@@ -300,7 +300,7 @@
   /**
    * \param indentation Each level will be indented by this amount extra.
    */
-  StyledStreamWriter(JSONCPP_STRING indentation = "\t");
+  StyledStreamWriter(const JSONCPP_STRING& indentation = "\t");
   ~StyledStreamWriter() {}
 
 public:
diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp
index 95e7b1c..e0e47ad 100644
--- a/src/lib_json/json_writer.cpp
+++ b/src/lib_json/json_writer.cpp
@@ -643,7 +643,7 @@
 // Class StyledStreamWriter
 // //////////////////////////////////////////////////////////////////
 
-StyledStreamWriter::StyledStreamWriter(JSONCPP_STRING indentation)
+StyledStreamWriter::StyledStreamWriter(const JSONCPP_STRING& indentation)
     : document_(NULL), rightMargin_(74), indentation_(indentation),
       addChildValues_(), indented_(false) {}