1// Aseprite
2// Copyright (C) 2017 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifdef HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11#include "app/cmd/with_slice.h"
12
13#include "doc/slice.h"
14
15namespace app {
16namespace cmd {
17
18using namespace doc;
19
20WithSlice::WithSlice(Slice* slice)
21 : m_sliceId(slice->id())
22{
23}
24
25Slice* WithSlice::slice()
26{
27 return get<Slice>(m_sliceId);
28}
29
30} // namespace cmd
31} // namespace app
32