Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
ec661eb9
Commit
ec661eb9
authored
Dec 07, 2012
by
Michal 'vorner' Vaner
Browse files
[2377] Small optimizations
parent
ab0db5a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/master_loader.cc
View file @
ec661eb9
...
...
@@ -83,7 +83,8 @@ public:
// Get a string token. Handle it as error if it is not string.
const
string
getString
()
{
return
(
lexer_
.
getNextToken
(
MasterToken
::
QSTRING
).
getString
());
lexer_
.
getNextToken
(
MasterToken
::
QSTRING
).
getString
(
string_token_
);
return
(
string_token_
);
}
bool
loadIncremental
(
size_t
count_limit
);
...
...
@@ -98,6 +99,7 @@ private:
const
std
::
string
master_file_
;
bool
initialized_
;
bool
ok_
;
std
::
string
string_token_
;
public:
bool
complete_
;
};
...
...
@@ -127,7 +129,7 @@ MasterLoader::MasterLoaderImpl::loadIncremental(size_t count_limit) {
// Return the last token, as it was not empty
lexer_
.
ungetToken
();
const
MasterToken
::
StringRegion
const
MasterToken
::
StringRegion
&
name_string
(
lexer_
.
getNextToken
(
MasterToken
::
QSTRING
).
getStringRegion
());
// TODO $ handling
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment