X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flengthcommon.h;h=7dcf3d91b59b46993d919035e480b6d6d1e1ced5;hb=e7f4618bcce770369cf46335c2c7f0164b4b8857;hp=23d7bf69f703a94aa45fbeec0eb6e34dd439237f;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/lengthcommon.h b/src/lengthcommon.h index 23d7bf69f7..7dcf3d91b5 100644 --- a/src/lengthcommon.h +++ b/src/lengthcommon.h @@ -18,6 +18,9 @@ #include "lyxlength.h" +namespace lyx { + + /// the number of units possible extern int const num_units; @@ -26,12 +29,14 @@ extern int const num_units; * * FIXME: I am not sure if "mu" should be possible to select (Lgb) */ -extern char const * unit_name[]; -extern char const * unit_name_gui[]; -extern char const * unit_name_ltx[]; +extern char const * const unit_name[]; +extern char const * const unit_name_gui[]; /// return the unit given a string representation such as "cm" LyXLength::UNIT unitFromString(std::string const & data); + +} // namespace lyx + #endif // LENGTH_COMMON_H