mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 06:59:18 +02:00
reformat: remove redundant qualifiers
This commit is contained in:
@@ -26,7 +26,7 @@ char endstring[10] = "\n";
|
||||
std::deque<std::string> log_scrollback;
|
||||
|
||||
std::string filename_date() {
|
||||
::SYSTEMTIME st;
|
||||
SYSTEMTIME st;
|
||||
|
||||
#ifdef __unix__
|
||||
timespec ts;
|
||||
@@ -41,7 +41,7 @@ std::string filename_date() {
|
||||
st.wSecond = tms->tm_sec;
|
||||
st.wMilliseconds = ts.tv_nsec / 1000000;
|
||||
#elif _WIN32
|
||||
::GetLocalTime( &st );
|
||||
GetLocalTime( &st );
|
||||
#endif
|
||||
|
||||
std::snprintf(
|
||||
|
||||
@@ -94,7 +94,7 @@ void UpdateTimers(bool pause)
|
||||
#if __unix__
|
||||
double fTime = (double)(count / 1000000000);
|
||||
#elif _WIN32_WINNT >= _WIN32_WINNT_VISTA
|
||||
const double fTime = ::GetTickCount64() * 0.001f; // Get current time in seconds
|
||||
const double fTime = GetTickCount64() * 0.001f; // Get current time in seconds
|
||||
#elif _WIN32
|
||||
double fTime = ::GetTickCount() * 0.001f; // Get current time in seconds
|
||||
#endif
|
||||
|
||||
@@ -59,7 +59,7 @@ cParser::cParser(std::string const &Stream, buffertype const Type, std::string P
|
||||
: allowRandomIncludes(allowRandom), LoadTraction(Loadtraction), mPath(Path)
|
||||
{
|
||||
// store to calculate sub-sequent includes from relative path
|
||||
if (Type == buffertype::buffer_FILE)
|
||||
if (Type == buffer_FILE)
|
||||
{
|
||||
mFile = Stream;
|
||||
}
|
||||
|
||||
@@ -354,18 +354,18 @@ const std::string& locale::coupling_name(int c)
|
||||
{
|
||||
static std::unordered_map<coupling, std::string> coupling_names =
|
||||
{
|
||||
{ coupling::faux, STRN("faux") },
|
||||
{ coupling::coupler, STRN("coupler") },
|
||||
{ coupling::brakehose, STRN("brake hose") },
|
||||
{ coupling::control, STRN("control") },
|
||||
{ coupling::highvoltage, STRN("high voltage") },
|
||||
{ coupling::gangway, STRN("gangway") },
|
||||
{ coupling::mainhose, STRN("main hose") },
|
||||
{ coupling::heating, STRN("heating") },
|
||||
{ coupling::permanent, STRN("permanent") },
|
||||
{ coupling::power24v, STRN("power 24V") },
|
||||
{ coupling::power110v, STRN("power 110V") },
|
||||
{ coupling::power3x400v, STRN("power 3x400V") },
|
||||
{ faux, STRN("faux") },
|
||||
{ coupler, STRN("coupler") },
|
||||
{ brakehose, STRN("brake hose") },
|
||||
{ control, STRN("control") },
|
||||
{ highvoltage, STRN("high voltage") },
|
||||
{ gangway, STRN("gangway") },
|
||||
{ mainhose, STRN("main hose") },
|
||||
{ heating, STRN("heating") },
|
||||
{ permanent, STRN("permanent") },
|
||||
{ power24v, STRN("power 24V") },
|
||||
{ power110v, STRN("power 110V") },
|
||||
{ power3x400v, STRN("power 3x400V") },
|
||||
};
|
||||
|
||||
static std::string unknown(STRN("unknown"));
|
||||
|
||||
@@ -383,7 +383,7 @@ std::time_t last_modified(std::string const &Filename)
|
||||
{
|
||||
const std::string fn = Filename;
|
||||
struct stat filestat;
|
||||
if (::stat(fn.c_str(), &filestat) == 0)
|
||||
if (stat(fn.c_str(), &filestat) == 0)
|
||||
return filestat.st_mtime;
|
||||
else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user