Swap Boost.Container's small_vector out for LLVM's

This implementation misses a shrink to fit function, but reassigning the
vector with a fresh one should be equivalent.
This commit is contained in:
Robbert van der Helm
2022-04-14 23:31:14 +02:00
parent fd25010aca
commit b2a15620f3
18 changed files with 1601 additions and 97 deletions
+4 -4
View File
@@ -26,8 +26,8 @@
#include <xcb/xcb.h>
#pragma pop_macro("_WIN32")
#include <llvm/small-vector.h>
#include <windows.h>
#include <boost/container/small_vector.hpp>
#include <ghc/filesystem.hpp>
#include "utils.h"
@@ -149,9 +149,9 @@ class WineXdndProxy {
* Initiate the XDDN protocol by taking ownership of the `XdndSelection`
* selection and setting up the event listeners.
*/
void begin_xdnd(const boost::container::small_vector_base<
ghc::filesystem::path>& file_paths,
HWND tracker_window);
void begin_xdnd(
const llvm::SmallVectorImpl<ghc::filesystem::path>& file_paths,
HWND tracker_window);
/**
* Release ownership of the selection stop listening for X11 events.