summaryrefslogtreecommitdiff
path: root/shared/privilege.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
commit9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch)
tree1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/privilege.h
parent3.14 (diff)
downloadFreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip
3.15
Diffstat (limited to 'shared/privilege.h')
-rw-r--r--shared/privilege.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/privilege.h b/shared/privilege.h
index c5ec99c7..0c5d5f0c 100644
--- a/shared/privilege.h
+++ b/shared/privilege.h
@@ -15,7 +15,7 @@ class Privileges
public:
static Privileges& getInstance();
- void ensureActive(LPCTSTR privilege) //throw FileError()
+ void ensureActive(LPCTSTR privilege) //throw (FileError)
{
if (activePrivileges.find(privilege) != activePrivileges.end())
return; //privilege already active
@@ -45,8 +45,8 @@ private:
catch(...) {}
}
- static bool privilegeIsActive(LPCTSTR privilege); //throw FileError()
- static void setPrivilege(LPCTSTR privilege, bool enable); //throw FileError()
+ static bool privilegeIsActive(LPCTSTR privilege); //throw (FileError)
+ static void setPrivilege(LPCTSTR privilege, bool enable); //throw (FileError)
typedef std::map<Zstring, bool> PrivBuffType; //bool: enabled by this application
bgstack15