[nostalgia] Address CLion recommendations

This commit is contained in:
2021-02-26 08:55:40 -06:00
parent d50551cc74
commit 44f4d67c80
14 changed files with 53 additions and 78 deletions
+1 -13
View File
@@ -29,18 +29,6 @@ namespace nostalgia::core {
return colStart + colOffset + rowStart + rowOffset;
}
template<typename T>
ox::Result<std::vector<uint8_t>> toBuffer(T *data, std::size_t buffSize = ox::units::MB) {
std::vector<uint8_t> buff(buffSize);
std::size_t sz = 0;
oxReturnError(ox::writeMC(buff.data(), buff.size(), data, &sz));
if (sz > buffSize) {
return OxError(1);
}
buff.resize(sz);
return buff;
}
[[nodiscard]] std::unique_ptr<core::NostalgiaGraphic> imgToNg(QString argInPath, int argBpp = -1);
[[nodiscard]] std::unique_ptr<core::NostalgiaGraphic> imgToNg(QString argInPath, int argBpp = -1);
}