src/toolsets/filetoolset.cpp

changeset 1063
1f15c52c11f6
parent 1053
2a48c0fff107
child 1064
4c7a353cf583
--- a/src/toolsets/filetoolset.cpp	Sat Jan 28 13:49:09 2017 +0200
+++ b/src/toolsets/filetoolset.cpp	Sat Jan 28 14:01:19 2017 +0200
@@ -158,7 +158,7 @@
 		{
 			QString contents = obj->asText();
 			QByteArray data = contents.toUtf8();
-			file.write(data, data.size());
+			file.write(data, length(data));
 			file.write("\r\n", 2);
 		}
 	}

mercurial