Skip to content

Commit 09b36b0

Browse files
committed
Add EnvStack typedef
1 parent 8f0bdc7 commit 09b36b0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/environment.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ namespace Sass {
112112

113113
// define typedef for our use case
114114
typedef Environment<AST_Node_Obj> Env;
115+
typedef std::vector<Env*> EnvStack;
115116

116117
}
117118

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sass {
2424
in_keyframes(false),
2525
at_root_without_rule(false),
2626
old_at_root_without_rule(false),
27-
env_stack(std::vector<Env*>()),
27+
env_stack(EnvStack()),
2828
block_stack(BlockStack()),
2929
call_stack(CallStack()),
3030
selector_stack(SelectorStack()),

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Sass {
3030
bool old_at_root_without_rule;
3131

3232
// it's easier to work with vectors
33-
std::vector<Env*> env_stack;
33+
EnvStack env_stack;
3434
BlockStack block_stack;
3535
CallStack call_stack;
3636
SelectorStack selector_stack;

0 commit comments

Comments
 (0)