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:
@@ -100,9 +100,7 @@ TPeopleApp::TPeopleApp()
|
|||||||
// person mime type from the hard-coded default attributes.
|
// person mime type from the hard-coded default attributes.
|
||||||
|
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
BMimeType mime;
|
BMimeType mime(B_PERSON_MIMETYPE);
|
||||||
mime.SetType(B_PERSON_MIMETYPE);
|
|
||||||
|
|
||||||
if (mime.IsInstalled()) {
|
if (mime.IsInstalled()) {
|
||||||
BMessage info;
|
BMessage info;
|
||||||
if (mime.GetAttrInfo(&info) == B_NO_ERROR) {
|
if (mime.GetAttrInfo(&info) == B_NO_ERROR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user