Commit 33c95143 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent f90ff7e1
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.
......
......@@ -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")
};
......
......@@ -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")
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment