File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11
11
#include " output.hpp"
12
12
#include " plugins.hpp"
13
13
14
- #define npos string::npos
15
-
16
14
namespace Sass {
17
15
18
16
Plugins::Plugins (void ) { }
@@ -31,10 +29,10 @@ namespace Sass {
31
29
32
30
// find the position of the second dot
33
31
size_t pos = string (our_version).find (' .' , 0 );
34
- if (pos != npos) pos = string (our_version).find (' .' , pos + 1 );
32
+ if (pos != string:: npos) pos = string (our_version).find (' .' , pos + 1 );
35
33
36
34
// if we do not have two dots we fallback to compare complete string
37
- if (pos == npos) { return strcmp (their_version, our_version) ? 0 : 1 ; }
35
+ if (pos == string:: npos) { return strcmp (their_version, our_version) ? 0 : 1 ; }
38
36
// otherwise only compare up to the second dot (major versions)
39
37
else { return strncmp (their_version, our_version, pos) ? 0 : 1 ; }
40
38
@@ -165,4 +163,3 @@ namespace Sass {
165
163
}
166
164
167
165
}
168
-
You can’t perform that action at this time.
0 commit comments