Drawable Renderer (#1570), warnings

This commit is contained in:
Tim Sylvester
2023-04-28 15:26:35 -07:00
committed by Bart Louwers
parent 61da26fe14
commit 8c749d155a
4 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ void DrawableBuilder::setColor(const Color& value) {
DrawablePtr DrawableBuilder::getCurrentDrawable(bool createIfNone) {
if (!currentDrawable && createIfNone) {
currentDrawable = createDrawable(drawableName.empty() ? name : drawableName);
currentDrawable = createDrawable();
}
return currentDrawable;
}

View File

@@ -7,8 +7,8 @@
namespace mbgl {
namespace gl {
gfx::DrawablePtr DrawableGLBuilder::createDrawable(std::string name) const {
return std::make_shared<DrawableGL>(std::move(name));
gfx::DrawablePtr DrawableGLBuilder::createDrawable() const {
return std::make_shared<DrawableGL>(drawableName.empty() ? name : drawableName);
};
void DrawableGLBuilder::init() {