mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -48,11 +48,11 @@ bool Ge0Parser::Parse(std::string const & url, Result & result)
|
||||
|
||||
bool Ge0Parser::ParseAfterPrefix(std::string const & url, size_t from, Result & result)
|
||||
{
|
||||
size_t const kEncodedZoomAndCoordinatesLength = 10;
|
||||
size_t constexpr kEncodedZoomAndCoordinatesLength = 10;
|
||||
if (url.size() < from + kEncodedZoomAndCoordinatesLength)
|
||||
return false;
|
||||
|
||||
size_t const kMaxNameLength = 256;
|
||||
size_t constexpr kMaxNameLength = 256;
|
||||
|
||||
size_t const posZoom = from;
|
||||
size_t const posLatLon = posZoom + 1;
|
||||
|
||||
Reference in New Issue
Block a user