Use BMimeType constructor version directly, as suggested by Jerome.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40403 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2011-02-09 11:25:41 +00:00
parent c608a3b2bc
commit 46af96832f

View File

@ -100,9 +100,7 @@ TPeopleApp::TPeopleApp()
// person mime type from the hard-coded default attributes.
bool valid = false;
BMimeType mime;
mime.SetType(B_PERSON_MIMETYPE);
BMimeType mime(B_PERSON_MIMETYPE);
if (mime.IsInstalled()) {
BMessage info;
if (mime.GetAttrInfo(&info) == B_NO_ERROR) {