mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
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:
parent
aa66ff35a2
commit
9e45934c6e
@ -28,7 +28,7 @@ namespace cmd {
|
||||
void onExecute() override;
|
||||
|
||||
private:
|
||||
ObjectIds m_layerIds;
|
||||
doc::ObjectIds m_layerIds;
|
||||
bool m_newBlendMethod;
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user