mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
884135d853
* refactor: replace #define with constexpr in some utils * fix: use-std-string-instead-of-c-array sonarcloud warning * fix: use init-statement sonarcloud warning * fix: explain-empty-function sonarcloud warning * fix: move #include directive to top sonarcloud warning * fix: replace-void-ptr-arg-with-more-meaningful-type sonarcloud warning * fix: replace-redundant-type-with-auto warning * fix: use-init-statement sonarcloud warning * fix: make type a pointer-to-const sonarcloud warning * fix: cli tyop * fix: replace-redundant-type-with-auto warning * fix: use-init-statement sonarcloud warning * fix: replace-redundant-type-with-auto warning * fix: use-init-statement sonarcloud warning * fix: replace-redundant-type-with-auto warning * fix: make type a pointer-to-const sonarcloud warning * fix: make type a pointer-to-const sonarcloud warning * fix: replace-redundant-type-with-auto warning * refactor: replace #define with constexpr in rpcimpl
29 lines
847 B
C
29 lines
847 B
C
/*
|
|
* This file Copyright (C) 2012-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
static auto constexpr MemK = size_t{ 1024 };
|
|
static char constexpr MemKStr[] = "KiB";
|
|
static char constexpr MemMStr[] = "MiB";
|
|
static char constexpr MemGStr[] = "GiB";
|
|
static char constexpr MemTStr[] = "TiB";
|
|
|
|
static auto constexpr DiskK = size_t{ 1000 };
|
|
static char constexpr DiskKStr[] = "kB";
|
|
static char constexpr DiskMStr[] = "MB";
|
|
static char constexpr DiskGStr[] = "GB";
|
|
static char constexpr DiskTStr[] = "TB";
|
|
|
|
static auto constexpr SpeedK = size_t{ 1000 };
|
|
static char constexpr SpeedKStr[] = "kB/s";
|
|
static char constexpr SpeedMStr[] = "MB/s";
|
|
static char constexpr SpeedGStr[] = "GB/s";
|
|
static char constexpr SpeedTStr[] = "TB/s";
|