ModernSettings: Use smart pointers

This commit is contained in:
ge0rdi
2020-08-31 20:11:50 +02:00
parent e210b4a65a
commit 9752afbebc
3 changed files with 7 additions and 13 deletions
@@ -3,6 +3,7 @@
#pragma once
#include "resource.h"
#include "ComHelper.h"
#include "StartMenuHelper_i.h"
#include <shlobj.h>
#include <string>
@@ -78,7 +79,7 @@ END_COM_MAP()
private:
std::wstring_view GetColumnDisplayName(PCUITEMID_CHILD pidl, UINT iColumn);
PIDLIST_ABSOLUTE m_pidl = nullptr; // where this folder is in the name space
CAbsolutePidl m_pidl; // where this folder is in the name space
};
OBJECT_ENTRY_AUTO(__uuidof(ModernSettingsShellFolder), CModernSettingsShellFolder)