Skip to content

Commit 2b8c39b

Browse files
committed
Signal: Don't allocate memory for a single listener
1 parent cce327b commit 2b8c39b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/NazaraUtils/Signal.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef NAZARAUTILS_SIGNAL_HPP
88
#define NAZARAUTILS_SIGNAL_HPP
99

10+
#include <NazaraUtils/FixedVector.hpp>
1011
#include <functional>
1112
#include <memory>
1213
#include <vector>
@@ -54,7 +55,7 @@ namespace Nz
5455
struct Slot;
5556

5657
using SlotPtr = std::shared_ptr<Slot>;
57-
using SlotList = std::vector<SlotPtr>;
58+
using SlotList = HybridVector<SlotPtr, 1>;
5859
using SlotListIndex = typename SlotList::size_type;
5960

6061
struct Slot

0 commit comments

Comments
 (0)