diff --git a/FileIO/Legacy/MeshIO.cpp b/FileIO/Legacy/MeshIO.cpp
index 623520ff7e2a7098686f9dccde60ca343f76a433..7afaaacdcd0756f781fc0c953ef9425389e3b42a 100644
--- a/FileIO/Legacy/MeshIO.cpp
+++ b/FileIO/Legacy/MeshIO.cpp
@@ -294,7 +294,7 @@ void MeshIO::writeElements(std::vector<MeshLib::Element*> const& ele_vec,
 	}
 }
 
-const std::string MeshIO::ElemType2StringOutput(const MeshElemType t) const
+std::string MeshIO::ElemType2StringOutput(const MeshElemType t) const
 {
 	if (t == MeshElemType::LINE)
 		return "line";