diff --git a/src/plugins/duieditor/duicodeformatter.h b/src/plugins/duieditor/duicodeformatter.h
index 71077dfbef4fda730325aad89945d0516d2ec35f..ebb2ef57db88de9330295f3fa7312935e4bea37e 100644
--- a/src/plugins/duieditor/duicodeformatter.h
+++ b/src/plugins/duieditor/duicodeformatter.h
@@ -54,7 +54,7 @@ protected:
 
 private:
     void append(char c) { m_result += c; }
-    void append(char *s) { m_result += s; }
+    void append(const char *s) { m_result += s; }
     void append(const QString &s) { m_result += s; }
     void append(const QmlJS::AST::SourceLocation &loc) { m_result += textAt(loc); }
     void append(int pos, int len) { append(textAt(pos, len)); }