X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/7300f7a9bc748ee5c45d6139b583da4d11a6b1d4..8996be78fd84b1a3e10a2b7e66b264e28b524ebd:/options.cpp diff --git a/options.cpp b/options.cpp index e9aa9b0..0d269d6 100644 --- a/options.cpp +++ b/options.cpp @@ -16,6 +16,8 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main); #include "options.h" +#define DATA_DESCR_WIDTH 42 + namespace opt { // Constants @@ -135,10 +137,9 @@ const char* opt_helper::on_off(bool b) const char* opt_helper::descr(const char* str) { - const int descr_width = 40; std::string& res = descr_str; res = str; - res.resize(descr_width, '.'); + res.resize(DATA_DESCR_WIDTH, '.'); return res.c_str(); }