summaryrefslogtreecommitdiff
path: root/include/image_upload.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-12-14 01:39:53 +0300
committerEd Tanous <ed@tanous.net>2021-12-28 00:42:41 +0300
commit168e20c1306e3e689907ba43e14ea679e2328611 (patch)
tree7c578ede3cf14ffaf06ad9fbc245a97b71b21cc9 /include/image_upload.hpp
parentb477fd4408bc0602cc86147121f03791d3f4824a (diff)
downloadbmcweb-168e20c1306e3e689907ba43e14ea679e2328611.tar.xz
Move to common variant
This saves approximately 34kB in the compressed binary size of bmcweb due to reduced template instantiations. This amounts to a 2.5% reduction in the overall size. Note, there were a few places where we broke const-correctness in the form of pulling a non-const reference out of a const variant. This new variant now requires const correctness, so some consts are added where required. Tested: Code compiles. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I6a60c8881c1268627eedb4ffddf16689dc5f6ed2
Diffstat (limited to 'include/image_upload.hpp')
-rw-r--r--include/image_upload.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/image_upload.hpp b/include/image_upload.hpp
index 1a0ace04bb..1b0a09a4ba 100644
--- a/include/image_upload.hpp
+++ b/include/image_upload.hpp
@@ -5,6 +5,7 @@
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <dbus_singleton.hpp>
+#include <dbus_utility.hpp>
#include <cstdio>
#include <fstream>
@@ -64,8 +65,8 @@ inline void
sdbusplus::message::object_path path;
std::vector<std::pair<
- std::string,
- std::vector<std::pair<std::string, std::variant<std::string>>>>>
+ std::string, std::vector<std::pair<
+ std::string, dbus::utility::DbusVariantType>>>>
interfaces;
m.read(path, interfaces);