Skip to content

Commit

Permalink
Try some other approach
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Jun 17, 2019
1 parent 909b970 commit 8ca3b00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/extender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,15 @@ namespace Sass {
// ##########################################################################
ExtSelExtMap Extender::extendExistingExtensions(
// Taking in a reference here makes MSVC debug stuck!?
const std::vector<Extension> oldExtensions,
const std::vector<Extension>& oldExtensions,
ExtSelExtMap& newExtensions)
{

ExtSelExtMap additionalExtensions;

for (Extension extension : oldExtensions) {
// for (Extension extension : oldExtensions) {
for (size_t i = 0; i < oldExtensions.size(); i += 1) {
Extension extension = oldExtensions[i];
ExtSelExtMapEntry& sources = extensions[extension.target];
std::vector<ComplexSelectorObj> selectors(extendComplex(
extension.extender,
Expand Down
2 changes: 1 addition & 1 deletion src/extender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ namespace Sass {
// ##########################################################################
ExtSelExtMap extendExistingExtensions(
// Taking in a reference here makes MSVC debug stuck!?
const std::vector<Extension> extensions,
const std::vector<Extension>& extensions,
ExtSelExtMap& newExtensions);

// ##########################################################################
Expand Down

0 comments on commit 8ca3b00

Please sign in to comment.