Tracker: Model: use SetToFormat.

This commit is contained in:
Augustin Cavalier
2015-05-08 13:02:10 -04:00
parent 728d237aa6
commit eb8660457a
+1 -3
View File
@@ -1310,10 +1310,8 @@ Model::GetVersionString(BString &result, version_kind kind)
if (error != B_OK)
return error;
char vstr[32];
sprintf(vstr, "%" B_PRId32 ".%" B_PRId32 ".%" B_PRId32, version.major,
result.SetToFormat("%" B_PRId32 ".%" B_PRId32 ".%" B_PRId32, version.major,
version.middle, version.minor);
result = vstr;
return B_OK;
}