Skip to content

Commit 354801c

Browse files
committed
Merge pull request #1310 from saper/namespaces
Clean up C++ namespaces
2 parents eadae5b + 2bb3708 commit 354801c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1709
-1787
lines changed

include/sass2scss.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#endif
3434

3535
// using std::string
36-
using namespace std;
3736

3837
// add namespace for c++
3938
namespace Sass
@@ -53,7 +52,7 @@ namespace Sass
5352
const int SASS2SCSS_CONVERT_COMMENT = 128;
5453

5554
// String for finding something interesting
56-
const string SASS2SCSS_FIND_WHITESPACE = " \t\n\v\f\r";
55+
const std::string SASS2SCSS_FIND_WHITESPACE = " \t\n\v\f\r";
5756

5857
// converter struct
5958
// holding all states
@@ -70,17 +69,17 @@ namespace Sass
7069
// has semicolon
7170
bool semicolon;
7271
// comment context
73-
string comment;
72+
std::string comment;
7473
// flag end of file
7574
bool end_of_file;
7675
// whitespace buffer
77-
string whitespace;
76+
std::string whitespace;
7877
// context/block stack
79-
stack<string> indents;
78+
std::stack<std::string> indents;
8079
};
8180

8281
// function only available in c++ code
83-
char* sass2scss (const string& sass, const int options);
82+
char* sass2scss (const std::string& sass, const int options);
8483

8584
}
8685
// EO namespace
@@ -112,4 +111,4 @@ extern "C" {
112111
} // __cplusplus defined.
113112
#endif
114113

115-
#endif
114+
#endif

0 commit comments

Comments
 (0)