diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 10:09:55 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 10:09:55 +0000 |
commit | e2c9a0153d4c7bde3f380ec853788b7147684da0 (patch) | |
tree | 413a1ca4724e02b6fd1f64e1fe14e1d496bbffa8 /gcc/ada/a-chahan.adb | |
parent | 447e605f4566b27ff6da22c7dca9671073f49508 (diff) | |
download | ppe42-gcc-e2c9a0153d4c7bde3f380ec853788b7147684da0.tar.gz ppe42-gcc-e2c9a0153d4c7bde3f380ec853788b7147684da0.zip |
2009-08-17 Robert Dewar <dewar@adacore.com>
* a-caldel-vms.adb, a-calend-vms.adb, a-calfor.adb, a-cdlili.adb,
a-chahan.adb, a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code
reorganization (use conditional expressions).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-chahan.adb')
-rw-r--r-- | gcc/ada/a-chahan.adb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/ada/a-chahan.adb b/gcc/ada/a-chahan.adb index e6a93617857..61419b090ee 100644 --- a/gcc/ada/a-chahan.adb +++ b/gcc/ada/a-chahan.adb @@ -457,11 +457,7 @@ package body Ada.Characters.Handling is Substitute : ISO_646 := ' ') return ISO_646 is begin - if Item in ISO_646 then - return Item; - else - return Substitute; - end if; + return (if Item in ISO_646 then Item else Substitute); end To_ISO_646; function To_ISO_646 @@ -472,11 +468,8 @@ package body Ada.Characters.Handling is begin for J in Item'Range loop - if Item (J) in ISO_646 then - Result (J - (Item'First - 1)) := Item (J); - else - Result (J - (Item'First - 1)) := Substitute; - end if; + Result (J - (Item'First - 1)) := + (if Item (J) in ISO_646 then Item (J) else Substitute); end loop; return Result; |