Code cleanup - move loose source and header files in source tree to group folders

Rename all header files with .h extension
Fix function declaration in HamlibTransceiver.h that overrode member function but was not marked override
Remove unused variable in Modulator.cpp
Remove unused files from source tree
Remove duplicate LazyFillComboBox files
Reformat codebase to LLVM C++ standard
This commit is contained in:
Chris-AC9KH 2026-01-01 15:12:24 -06:00 committed by Chris Olson
parent a9760e6f71
commit 356bdc0f50
326 changed files with 46098 additions and 46900 deletions

35
JS8_Main/MessageError.cpp Normal file
View file

@ -0,0 +1,35 @@
#include "MessageError.h"
/******************************************************************************/
// Private Implementation
/******************************************************************************/
namespace {
const struct final : public std::error_category {
const char *name() const noexcept override { return "message"; }
std::string message(int const ev) const override {
using MessageError::Code;
switch (static_cast<Code>(ev)) {
case Code::json_parsing_error:
return "json parsing error";
case Code::json_not_an_object:
return "json not an object";
default:
return "message error";
}
}
} Category;
} // namespace
/******************************************************************************/
// Implementation
/******************************************************************************/
namespace MessageError {
std::error_category const &category() noexcept { return Category; }
} // namespace MessageError
/******************************************************************************/