Fix various typos
Missed by the codespell CI not being functional for a period of time.
This commit is contained in:
@@ -228,7 +228,7 @@ public:
|
||||
bool hasAttribute(const char* AttrName) const;
|
||||
|
||||
private:
|
||||
// all explicit template instatiations - this is for getting
|
||||
// all explicit template instantiations - this is for getting
|
||||
// a compile error, rather than linker error.
|
||||
template<typename T>
|
||||
static constexpr bool instantiated =
|
||||
@@ -237,7 +237,7 @@ private:
|
||||
|
||||
public:
|
||||
/// return the named attribute as T (does type checking); if missing return defaultValue.
|
||||
/// If defaultValue is not set, it will default to the default initilization of the
|
||||
/// If defaultValue is not set, it will default to the default initialization of the
|
||||
/// corresponding type; bool: false, int: 0, ... as if one had used defaultValue=bool{}
|
||||
/// or defaultValue=int{}
|
||||
// General template, mark delete as it's not implemented, and should not be used!
|
||||
|
||||
@@ -76,7 +76,7 @@ UnitsSchema::translate(const Quantity& quant, double& factor, std::string& unitS
|
||||
auto unitSpecs = spec.translationSpecs.at(unitName);
|
||||
const auto unitSpec = std::find_if(unitSpecs.begin(), unitSpecs.end(), isSuitable);
|
||||
if (unitSpec == unitSpecs.end()) {
|
||||
throw RuntimeError("Suitable threshhold not found. Schema: " + spec.name
|
||||
throw RuntimeError("Suitable threshold not found. Schema: " + spec.name
|
||||
+ " value: " + std::to_string(value));
|
||||
}
|
||||
|
||||
|
||||
@@ -103,8 +103,8 @@ public:
|
||||
// static UnlimitedUnsigned operator+(UnlimitedUnsigned&& left, const UnlimitedUnsigned&
|
||||
// right); static UnlimitedUnsigned operator+(const UnlimitedUnsigned& left,
|
||||
// UnlimitedUnsigned&& right); static UnlimitedUnsigned operator+(UnlimitedUnsigned&& left,
|
||||
// UnlimitedUnsigned&& right); which would re-use left.parts or right.parts after possibly
|
||||
// growing it. The last one would use the larger of the two buffers
|
||||
// UnlimitedUnsigned&& right); which would reuse left.parts or right.parts after possibly
|
||||
// growing it. The last one would use the larger of the two buffers.
|
||||
UnlimitedUnsigned operator+(const UnlimitedUnsigned& right) const
|
||||
{
|
||||
size_t resultSize = std::max(parts.size(), right.parts.size());
|
||||
|
||||
@@ -172,7 +172,7 @@ inline XStr::~XStr()
|
||||
}
|
||||
|
||||
// Uses the compiler to create a cache of transcoded string literals so that each subsequent call
|
||||
// can re-use the data from the lambda's initial creation. Permits the same usage as
|
||||
// can reuse the data from the lambda's initial creation. Permits the same usage as
|
||||
// XStr("literal").unicodeForm()
|
||||
#define XStrLiteral(literal) \
|
||||
([]() -> const XStr& { \
|
||||
@@ -217,7 +217,7 @@ inline XUTF8Str::XUTF8Str(const char* const fromTranscode)
|
||||
inline XUTF8Str::~XUTF8Str() = default;
|
||||
|
||||
// Uses the compiler to create a cache of transcoded string literals so that each subsequent call
|
||||
// can re-use the data from the lambda's initial creation. Permits the same usage as
|
||||
// can reuse the data from the lambda's initial creation. Permits the same usage as
|
||||
// XStr("literal").unicodeForm()
|
||||
#define XUTF8StrLiteral(literal) \
|
||||
([]() -> const XUTF8Str& { \
|
||||
|
||||
Reference in New Issue
Block a user