Fix compilation error due to static variable definition in MIMETypeLibrary header file

This commit is contained in:
sabrina-shanman 2018-12-03 15:26:34 -08:00
parent a63888cac8
commit 3c38b43a65
2 changed files with 2 additions and 2 deletions

View file

@ -11,6 +11,8 @@
#include "MIMETypeLibrary.h"
MIMEType MIMEType::NONE = MIMEType("");
MIMETypeLibrary::ID MIMETypeLibrary::registerMIMEType(const MIMEType& mimeType) {
ID id = nextID++;
_mimeTypes.emplace_back(id, mimeType);

View file

@ -57,8 +57,6 @@ public:
std::vector<FileSignature> fileSignatures;
};
MIMEType MIMEType::NONE = MIMEType("");
class MIMETypeLibrary {
public:
using ID = unsigned int;