throw platform_error; -> throw platform_error();. Convert some spaces to tabs.
This commit is contained in:
parent
458d1ba83d
commit
97847f517b
|
@ -129,7 +129,7 @@ fdb_error_t fdb_stop_network() {
|
|||
|
||||
extern "C" DLLEXPORT
|
||||
fdb_error_t fdb_add_network_thread_completion_hook(void (*hook)(void*), void *hook_parameter) {
|
||||
CATCH_AND_RETURN( API->addNetworkThreadCompletionHook(hook, hook_parameter); );
|
||||
CATCH_AND_RETURN( API->addNetworkThreadCompletionHook(hook, hook_parameter); );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -132,15 +132,15 @@ std::string getDefaultConfigPath() {
|
|||
bool isSse42Supported()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
int info[4];
|
||||
__cpuid(info, 1);
|
||||
return (info[2] & (1 << 20)) != 0;
|
||||
int info[4];
|
||||
__cpuid(info, 1);
|
||||
return (info[2] & (1 << 20)) != 0;
|
||||
#elif defined(__unixish__)
|
||||
uint32_t eax, ebx, ecx, edx, level = 1, count = 0;
|
||||
__cpuid_count(level, count, eax, ebx, ecx, edx);
|
||||
return ((ecx >> 20) & 1) != 0;
|
||||
uint32_t eax, ebx, ecx, edx, level = 1, count = 0;
|
||||
__cpuid_count(level, count, eax, ebx, ecx, edx);
|
||||
return ((ecx >> 20) & 1) != 0;
|
||||
#else
|
||||
#error Port me!
|
||||
#error Port me!
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -1349,12 +1349,12 @@ void getLocalTime(const time_t *timep, struct tm *result) {
|
|||
#ifdef _WIN32
|
||||
if(localtime_s(result, timep) != 0) {
|
||||
TraceEvent(SevError, "GetLocalTimeError").GetLastError();
|
||||
throw platform_error;
|
||||
throw platform_error();
|
||||
}
|
||||
#elif defined(__unixish__)
|
||||
if(localtime_r(timep, result) == NULL) {
|
||||
TraceEvent(SevError, "GetLocalTimeError").GetLastError();
|
||||
throw platform_error;
|
||||
throw platform_error();
|
||||
}
|
||||
#else
|
||||
#error Port me!
|
||||
|
|
Loading…
Reference in New Issue