Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-06-02 15:46:36 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:59:13 +0300
commitc92f70d4ffdf6a8a083714cd075f122978a4e653 (patch)
tree9fa901eaf01c757d1b2a5549609020abb239d302 /src/gui/sharepermissions.h
parent2b95f919adff3a06aaf2a4b36e177bb09ec474e1 (diff)
Beautify flags
Diffstat (limited to 'src/gui/sharepermissions.h')
-rw-r--r--src/gui/sharepermissions.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/sharepermissions.h b/src/gui/sharepermissions.h
index 3ac6d3a29..92ce95766 100644
--- a/src/gui/sharepermissions.h
+++ b/src/gui/sharepermissions.h
@@ -23,12 +23,12 @@ namespace OCC {
* Possible permissions, must match the server permission constants
*/
enum SharePermission {
- SharePermissionRead = 1,
- SharePermissionUpdate = 2,
- SharePermissionCreate = 4,
- SharePermissionDelete = 8,
- SharePermissionShare = 16,
- SharePermissionDefault = 31
+ SharePermissionRead = 1 << 0,
+ SharePermissionUpdate = 1 << 1,
+ SharePermissionCreate = 1 << 2,
+ SharePermissionDelete = 1 << 3,
+ SharePermissionShare = 1 << 4,
+ SharePermissionDefault = 1 << 30
};
Q_DECLARE_FLAGS(SharePermissions, SharePermission)
Q_DECLARE_OPERATORS_FOR_FLAGS(SharePermissions)