mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Revert "fix: optimization: Various PVS-Studio warnings"
This commit is contained in:
parent
a7ef7bb365
commit
ba046a52c0
90 changed files with 259 additions and 274 deletions
|
|
@ -37,7 +37,7 @@ std::string util::quote(const std::string& s) {
|
|||
return escape(s);
|
||||
}
|
||||
|
||||
std::wstring util::lfill(const std::wstring& s, uint length, wchar_t c) {
|
||||
std::wstring util::lfill(std::wstring s, uint length, wchar_t c) {
|
||||
if (s.length() >= length) {
|
||||
return s;
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ std::wstring util::lfill(const std::wstring& s, uint length, wchar_t c) {
|
|||
return ss.str();
|
||||
}
|
||||
|
||||
std::wstring util::rfill(const std::wstring& s, uint length, wchar_t c) {
|
||||
std::wstring util::rfill(std::wstring s, uint length, wchar_t c) {
|
||||
if (s.length() >= length) {
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue