Drawable Renderer (#1570), warnings
This commit is contained in:
committed by
Bart Louwers
parent
61da26fe14
commit
8c749d155a
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user