Remove useless blocks
Don't put the code inside two blocks for no reason. Change-Id: I54b8d6fbfab50a26ddcd8ec07ba689e5094bcad3 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
605d383a70
commit
f28e161361
@ -178,8 +178,6 @@ GlobalSid::~GlobalSid()
|
|||||||
|
|
||||||
GlobalSid::GlobalSid()
|
GlobalSid::GlobalSid()
|
||||||
{
|
{
|
||||||
{
|
|
||||||
{
|
|
||||||
// Create TRUSTEE for current user
|
// Create TRUSTEE for current user
|
||||||
HANDLE hnd = ::GetCurrentProcess();
|
HANDLE hnd = ::GetCurrentProcess();
|
||||||
HANDLE token = 0;
|
HANDLE token = 0;
|
||||||
@ -218,8 +216,6 @@ GlobalSid::GlobalSid()
|
|||||||
if (AllocateAndInitializeSid(&worldAuth, 1, SECURITY_WORLD_RID, 0, 0, 0, 0, 0, 0, 0, &worldSID))
|
if (AllocateAndInitializeSid(&worldAuth, 1, SECURITY_WORLD_RID, 0, 0, 0, 0, 0, 0, 0, &worldSID))
|
||||||
BuildTrusteeWithSid(&worldTrusteeW, worldSID);
|
BuildTrusteeWithSid(&worldTrusteeW, worldSID);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_GLOBAL_STATIC(GlobalSid, initGlobalSid)
|
Q_GLOBAL_STATIC(GlobalSid, initGlobalSid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user