mirror of https://github.com/GNOME/gimp.git
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:
parent
f90ff7e10b
commit
33c95143ad
|
@ -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.
|
||||
|
|
|
@ -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")
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue