mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 21:00:06 +00:00
Asset suffix should be const, not constexpr
This commit is contained in:
parent
07adbb382d
commit
2beac20ee3
1 changed files with 2 additions and 2 deletions
|
|
@ -93,9 +93,9 @@ void UpdateDialog::Impl::HandleAsset(const types::gh::ReleaseAsset& asset)
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
# if defined(_M_AMD64)
|
# if defined(_M_AMD64)
|
||||||
static constexpr std::string assetSuffix = "-x64.msi";
|
static const std::string assetSuffix = "-x64.msi";
|
||||||
# else
|
# else
|
||||||
static constexpr std::string assetSuffix = "-arm64.msi";
|
static const std::string assetSuffix = "-arm64.msi";
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
if (asset.name_.ends_with(assetSuffix))
|
if (asset.name_.ends_with(assetSuffix))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue