nextcloud-desktop/shell_integration/windows/OCUtil
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
..
CommunicationSocket.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
CommunicationSocket.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
FileUtil.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
FileUtil.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCMessage.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCMessage.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCUtil.vcxproj shell/windows: Add missing Win32 configuration changes 2016-07-26 14:53:14 +02:00
ParserUtil.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
RegistryUtil.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
RegistryUtil.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
RemotePathChecker.cpp shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
RemotePathChecker.h shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
stdafx.cpp [shell_integration] Setup precompiled headers properly with MSVC 2015-02-05 15:14:42 +01:00
stdafx.h [shell_integration] Remove the usage of Win32 APIs not available on XP 2015-02-05 15:15:05 +01:00
StringUtil.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
StringUtil.h shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
UtilConstants.h Relocate Windows shell extensions 2015-01-12 14:40:42 +01:00
Version.h shell/windows: Build 43, add missing 32 bit binaries 2016-07-26 14:54:27 +02:00