nextcloud-desktop/shell_integration/windows/OCOverlays
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
..
ico Windows: Update the overlay icon graphics #3105 2016-01-12 11:46:05 +01:00
DllMain.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCOverlay.cpp shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
OCOverlay.h shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
OCOverlay.rc shell_integration/windows: Add a manually-increased build number 2016-06-27 15:13:47 +02:00
OCOverlayFactory.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCOverlayFactory.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCOverlayRegistrationHandler.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCOverlayRegistrationHandler.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCOverlays.def Relocate Windows shell extensions 2015-01-12 14:40:42 +01:00
OCOverlays.vcxproj shell/windows: Add missing Win32 configuration changes 2016-07-26 14:53:14 +02:00
OverlayConstants.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OverlayConstants.h.original Relocate Windows shell extensions 2015-01-12 14:40:42 +01:00
resource.h Relocate Windows shell extensions 2015-01-12 14:40:42 +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