BMimeType: Use the new _DEPRECATED to mark SetType deprecated.

This is the first use of this new macro.
This commit is contained in:
Augustin Cavalier
2026-03-02 21:03:25 -05:00
parent a3be73a455
commit f071ee419d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ public:
static status_t StopWatching(BMessenger target); static status_t StopWatching(BMessenger target);
/* Deprecated. Use SetTo() instead. */ /* Deprecated. Use SetTo() instead. */
status_t SetType(const char* mimeType); status_t SetType(const char* mimeType) _DEPRECATED;
private: private:
BMimeType(const char* mimeType, const char* mimePath); BMimeType(const char* mimeType, const char* mimePath);
+1 -1
View File
@@ -705,7 +705,7 @@ KindAttributeText::ReadValue(BString* outString)
char desc[B_MIME_TYPE_LENGTH]; char desc[B_MIME_TYPE_LENGTH];
// get the mime type // get the mime type
if (mime.SetType(fModel->MimeType()) != B_OK) if (mime.SetTo(fModel->MimeType()) != B_OK)
*outString = B_TRANSLATE("Unknown"); *outString = B_TRANSLATE("Unknown");
else if (mime.GetShortDescription(desc) == B_OK) { else if (mime.GetShortDescription(desc) == B_OK) {
// get the short mime type description // get the short mime type description
@@ -372,7 +372,7 @@ GeneralInfoView::InitStrings(const Model* model)
fFileSystemStr = B_TRANSLATE("(unknown)"); fFileSystemStr = B_TRANSLATE("(unknown)");
} }
if (mime.SetType(model->MimeType()) == B_OK if (mime.SetTo(model->MimeType()) == B_OK
&& mime.GetShortDescription(kind) == B_OK) && mime.GetShortDescription(kind) == B_OK)
fKindStr = kind; fKindStr = kind;