Skip to content

Commit 30c16f6

Browse files
committed
renamed variable
1 parent 8b9dd2a commit 30c16f6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/NoPsSpecialHandler.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ using namespace std;
2525

2626

2727
bool NoPsSpecialHandler::process (const string&, istream&, SpecialActions&) {
28-
_count++;
28+
_ignoreCount++;
2929
return true;
3030
}
3131

3232

3333
void NoPsSpecialHandler::dviEndPage (unsigned pageno, SpecialActions &actions) {
34-
if (_count > 0) {
35-
string suffix = (_count > 1 ? "s" : "");
36-
Message::wstream(true) << _count << " PostScript special" << suffix << " ignored. The resulting SVG might look wrong.\n";
37-
_count = 0;
34+
if (_ignoreCount > 0) {
35+
string suffix = (_ignoreCount > 1 ? "s" : "");
36+
Message::wstream(true) << _ignoreCount << " PostScript special" << suffix << " ignored."
37+
<< " The resulting SVG might look wrong.\n";
38+
_ignoreCount = 0;
3839
}
3940
}
4041

src/NoPsSpecialHandler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class NoPsSpecialHandler : public SpecialHandler {
3535
void dviEndPage (unsigned pageno, SpecialActions &actions) override;
3636

3737
private:
38-
size_t _count=0; // number of PS specials skipped
38+
size_t _ignoreCount=0; // number of PS specials skipped
3939
};
4040

4141
#endif

0 commit comments

Comments
 (0)