Remove "using namespace doc" from app/cmd/with_sprite.h

We should remove all "using namespace" from header files, but it's a
progressive thing to do/not critical.
This commit is contained in:
David Capello 2019-10-09 15:43:06 -03:00
parent aa66ff35a2
commit 9e45934c6e
3 changed files with 9 additions and 10 deletions

View File

@ -28,7 +28,7 @@ namespace cmd {
void onExecute() override;
private:
ObjectIds m_layerIds;
doc::ObjectIds m_layerIds;
bool m_newBlendMethod;
};

View File

@ -1,4 +1,5 @@
// Aseprite
// Copyright (C) 2019 Igara Studio S.A.
// Copyright (C) 2001-2015 David Capello
//
// This program is distributed under the terms of
@ -15,16 +16,14 @@
namespace app {
namespace cmd {
using namespace doc;
WithSprite::WithSprite(Sprite* sprite)
WithSprite::WithSprite(doc::Sprite* sprite)
: m_spriteId(sprite->id())
{
}
Sprite* WithSprite::sprite()
doc::Sprite* WithSprite::sprite()
{
return get<Sprite>(m_spriteId);
return doc::get<doc::Sprite>(m_spriteId);
}
} // namespace cmd

View File

@ -1,4 +1,5 @@
// Aseprite
// Copyright (C) 2019 Igara Studio S.A.
// Copyright (C) 2001-2015 David Capello
//
// This program is distributed under the terms of
@ -16,15 +17,14 @@ namespace doc {
namespace app {
namespace cmd {
using namespace doc;
class WithSprite {
public:
WithSprite(Sprite* sprite);
Sprite* sprite();
WithSprite(doc::Sprite* sprite);
doc::Sprite* sprite();
private:
ObjectId m_spriteId;
doc::ObjectId m_spriteId;
};
} // namespace cmd