aboutsummaryrefslogtreecommitdiff
path: root/justify.cc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-04-02 21:51:57 +0200
committerAdrian Kummerlaender2016-04-02 21:51:57 +0200
commita5a81425f4e656ecf0e867e114863b1b208e90b0 (patch)
tree364b7ef1bb640c87f3f8cbb7547754ed7f28434d /justify.cc
parent59bfdf3b83119c9e5e29f94362307b7e8a3df43a (diff)
downloadjustify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.gz
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.bz2
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.lz
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.xz
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.zst
justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.zip
Move `LineAccumulator` closure into `justify` project namespace
Diffstat (limited to 'justify.cc')
-rw-r--r--justify.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/justify.cc b/justify.cc
index 870c815..73a3a3b 100644
--- a/justify.cc
+++ b/justify.cc
@@ -6,10 +6,10 @@ int main() {
std::cout.sync_with_stdio(false);
std::cin.sync_with_stdio(false);
- LineAccumulator acc{60};
- std::string word;
+ justify::LineAccumulator acc{60};
+ std::string token;
- while ( std::cin >> word ) {
- acc(word);
+ while ( std::cin >> token ) {
+ acc(token);
}
}