diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:08:39 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-31 15:49:25 +0100 |
commit | 1a5ddf061ef53fb9feda0ee319fa36cadef020da (patch) | |
tree | 3366342b899487a61ed9a95e66b6bd267ca632dc /stoc/source/security | |
parent | 5b54ba7084d6b575814af26be30cf5af5dfca12c (diff) |
Prepare for removal of non-const operator[] from Sequence in stoc
Change-Id: I2aabd9a1c764ae69a933bdb4df635ebb0c91f0cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124393
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/file_policy.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 85825886b9ea..11c54444adef 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -444,14 +444,14 @@ void FilePolicy::refresh() Sequence< Any > perms( userPermissions[ userId ] ); sal_Int32 len = perms.getLength(); perms.realloc( len +1 ); - perms[ len ] = perm; + perms.getArray()[ len ] = perm; userPermissions[ userId ] = perms; } else { sal_Int32 len = defaultPermissions.getLength(); defaultPermissions.realloc( len +1 ); - defaultPermissions[ len ] = perm; + defaultPermissions.getArray()[ len ] = perm; } token = reader.assureToken(); // next permissions token |