commit f2c1a42bfb82f8cc0a3ecdfe9251ff5b98627ae6 parent d832e1e83fe070586a2741c36d7fd20ba6351c18 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Thu, 20 Feb 2025 22:34:10 +0100 make default filetypes const Diffstat:
M | source/jucePluginEditorLib/filetype.cpp | | | 4 | ++-- |
M | source/jucePluginEditorLib/filetype.h | | | 4 | ++-- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/source/jucePluginEditorLib/filetype.cpp b/source/jucePluginEditorLib/filetype.cpp @@ -4,8 +4,8 @@ namespace jucePluginEditorLib { - FileType FileType::Syx("syx"); - FileType FileType::Mid("mid"); + const FileType FileType::Syx("syx"); + const FileType FileType::Mid("mid"); bool FileType::operator==(const FileType& _other) const { diff --git a/source/jucePluginEditorLib/filetype.h b/source/jucePluginEditorLib/filetype.h @@ -7,8 +7,8 @@ namespace jucePluginEditorLib class FileType { public: - static FileType Syx; - static FileType Mid; + static const FileType Syx; + static const FileType Mid; explicit FileType(std::string _type) : type(std::move(_type)) {