diff options
| author | YAMAMOTO Mitsuharu | 2006-10-31 08:32:25 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-10-31 08:32:25 +0000 |
| commit | 11e0f75563dddb35cf1381a69f46553182a684d8 (patch) | |
| tree | 03031ee28a136319471075a6f1f838379c7b6700 /src | |
| parent | 37a39780ffd10f5d7e4429f7837eb780960de6ad (diff) | |
| download | emacs-11e0f75563dddb35cf1381a69f46553182a684d8.tar.gz emacs-11e0f75563dddb35cf1381a69f46553182a684d8.zip | |
(init_service_handler): Make variable `specs' static
const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macselect.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/macselect.c b/src/macselect.c index fd72bd3cb14..7a952f88367 100644 --- a/src/macselect.c +++ b/src/macselect.c | |||
| @@ -1616,10 +1616,11 @@ remove_drag_handler (window) | |||
| 1616 | void | 1616 | void |
| 1617 | init_service_handler () | 1617 | init_service_handler () |
| 1618 | { | 1618 | { |
| 1619 | EventTypeSpec specs[] = {{kEventClassService, kEventServiceGetTypes}, | 1619 | static const EventTypeSpec specs[] = |
| 1620 | {kEventClassService, kEventServiceCopy}, | 1620 | {{kEventClassService, kEventServiceGetTypes}, |
| 1621 | {kEventClassService, kEventServicePaste}, | 1621 | {kEventClassService, kEventServiceCopy}, |
| 1622 | {kEventClassService, kEventServicePerform}}; | 1622 | {kEventClassService, kEventServicePaste}, |
| 1623 | {kEventClassService, kEventServicePerform}}; | ||
| 1623 | InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event), | 1624 | InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event), |
| 1624 | GetEventTypeCount (specs), specs, NULL, NULL); | 1625 | GetEventTypeCount (specs), specs, NULL, NULL); |
| 1625 | } | 1626 | } |