app/core/gimpunit.c built-in units are const.

2005-04-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpunit.c
	* libgimp/gimpunitcache.c: built-in units are const.
This commit is contained in:
Sven Neumann 2005-04-28 09:47:27 +00:00 committed by Sven Neumann
parent f90ff7e10b
commit 33c95143ad
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-04-28 Sven Neumann <sven@gimp.org>
* app/core/gimpunit.c
* libgimp/gimpunitcache.c: built-in units are const.
2005-04-28 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-render.c: spare a few CPU cycles.

View File

@ -49,7 +49,7 @@ typedef struct
/* these are the built-in units
*/
static GimpUnitDef gimp_unit_defs[GIMP_UNIT_END] =
static const GimpUnitDef gimp_unit_defs[GIMP_UNIT_END] =
{
/* pseudo unit */
{ FALSE, 0.0, 0, "pixels", "px", "px", N_("pixel"), N_("pixels") },
@ -65,7 +65,7 @@ static GimpUnitDef gimp_unit_defs[GIMP_UNIT_END] =
/* not a unit at all but kept here to have the strings in one place
*/
static GimpUnitDef gimp_unit_percent =
static const GimpUnitDef gimp_unit_percent =
{
FALSE, 0.0, 0, "percent", "%", "%", N_("percent"), N_("percent")
};

View File

@ -52,7 +52,7 @@ static GimpUnit gimp_units_initialized = 0;
/* not a unit at all but kept here to have the strings in one place
*/
static GimpUnitDef gimp_unit_percent =
static const GimpUnitDef gimp_unit_percent =
{
0.0, 0, "percent", "%", "%", N_("percent"), N_("percent")
};