mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Clean up placefile shared pointer usage with const references
This commit is contained in:
parent
232fafc9fa
commit
9955c4ccbe
12 changed files with 33 additions and 31 deletions
|
|
@ -23,8 +23,8 @@ static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
|
|||
class PlacefileText::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl(std::shared_ptr<GlContext> context,
|
||||
const std::string& placefileName) :
|
||||
explicit Impl(const std::shared_ptr<GlContext>& context,
|
||||
const std::string& placefileName) :
|
||||
context_ {context}, placefileName_ {placefileName}
|
||||
{
|
||||
}
|
||||
|
|
@ -63,8 +63,8 @@ public:
|
|||
std::vector<std::shared_ptr<const gr::Placefile::TextDrawItem>> newList_ {};
|
||||
};
|
||||
|
||||
PlacefileText::PlacefileText(std::shared_ptr<GlContext> context,
|
||||
const std::string& placefileName) :
|
||||
PlacefileText::PlacefileText(const std::shared_ptr<GlContext>& context,
|
||||
const std::string& placefileName) :
|
||||
DrawItem(context->gl()), p(std::make_unique<Impl>(context, placefileName))
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue