summaryrefslogtreecommitdiff
path: root/shared/privilege.h
diff options
context:
space:
mode:
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