summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/master_lexer.cc
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2012-11-22 11:34:48 +0100
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2012-11-22 11:34:48 +0100
commite27a2922bca6a9c9f53e867c187a6e589bf3175c (patch)
tree4b771c3d72bb59c8d414554025e5650468b623ea /src/lib/dns/master_lexer.cc
parent[2375] Handle EOF after unbalanced parentheses (diff)
downloadkea-e27a2922bca6a9c9f53e867c187a6e589bf3175c.tar.xz
kea-e27a2922bca6a9c9f53e867c187a6e589bf3175c.zip
[2375] Return a reference to the token
The copy is shallow anyway, so it wouldn't survive for long.
Diffstat (limited to 'src/lib/dns/master_lexer.cc')
-rw-r--r--src/lib/dns/master_lexer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dns/master_lexer.cc b/src/lib/dns/master_lexer.cc
index d891b4b1da..17cdda8eeb 100644
--- a/src/lib/dns/master_lexer.cc
+++ b/src/lib/dns/master_lexer.cc
@@ -164,7 +164,7 @@ MasterLexer::getSourceLine() const {
return (impl_->sources_.back()->getCurrentLine());
}
-MasterLexer::Token
+const MasterLexer::Token&
MasterLexer::getNextToken(Options options) {
// If the source is not available
if (impl_->source_ == NULL) {