Merge pull request #136 from EricaNebula/user/ericanebula/primfeed-static-const

primfeed: cannot use string with constexpr; revert to static const
master
Beq Janus 2025-05-23 10:22:12 +01:00 committed by GitHub
commit 479d55d4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void FSPrimfeedPhotoPanel::sendPhoto()
{
auto ratingToString = [&](int rating)
{
constexpr std::array<std::string, 4> RATING_NAMES = {
static const std::array<std::string, 4> RATING_NAMES = {
"general", // 1
"moderate", // 2
"adult", // 3