nextcloud-desktop/shell_integration
Jocelyn Turcotte 47fbfbc006 shell/Windows: Avoid memory allocations and copies when querying icons
IsMemberOf is called for every file (in the ownCloud directory or not) and
with every instance of OCOverlay (we have 5) when displaying a list of
files in Explorer.

Refactor the code to avoid copying the list of watched directories, as
well as creating a wstring from a PWWSTR for files outside watched
directories.

Also change some calls of begin_with to use isDescendantOf since it
properly handles parent paths not ending with a backslash, which could
lead to SocketAPI queries for sibling folders with a name that starts with
a watched folder name.
2017-01-18 12:15:52 +01:00
..
dolphin Symlink Support for Dolphin Plugins (#5428) 2017-01-05 13:24:22 +01:00
icons Windows: Update the overlay icon graphics #3105 2016-01-12 11:46:05 +01:00
MacOSX shell/macOS: Make sure the root folder's cache is cleared on disconnect 2017-01-18 12:15:52 +01:00
nautilus Merge pull request #5267 from payload/fix_4608 2016-11-14 12:35:18 +01:00
windows shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
CMakeLists.txt CMake: Fix typo 2015-11-30 01:05:18 +01:00