mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:50:48 +00:00
remove c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32725 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d49d7e03f4
commit
1adee1bfb0
2 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
2011-03-28 Riccardo Mottola <rm@gnu.org>
|
2011-03-28 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
* Source/NSSearchFieldCell.m:
|
* Source/NSSearchFieldCell.m,
|
||||||
|
* Source/NSTextView.m:
|
||||||
Remove c99-ism
|
Remove c99-ism
|
||||||
|
|
||||||
* Source/NSSpeechSynthesizer.m:
|
* Source/NSSpeechSynthesizer.m:
|
||||||
|
|
|
@ -1518,9 +1518,10 @@ to make sure syncing is handled properly in all cases.
|
||||||
|
|
||||||
if (_tf.continuous_spell_checking && !flag)
|
if (_tf.continuous_spell_checking && !flag)
|
||||||
{
|
{
|
||||||
_tf.continuous_spell_checking = 0;
|
|
||||||
|
|
||||||
const NSRange allRange = NSMakeRange(0, [[self string] length]);
|
const NSRange allRange = NSMakeRange(0, [[self string] length]);
|
||||||
|
|
||||||
|
_tf.continuous_spell_checking = 0;
|
||||||
|
|
||||||
[_layoutManager removeTemporaryAttribute: @"NSTextChecked"
|
[_layoutManager removeTemporaryAttribute: @"NSTextChecked"
|
||||||
forCharacterRange: allRange];
|
forCharacterRange: allRange];
|
||||||
[_layoutManager removeTemporaryAttribute: NSSpellingStateAttributeName
|
[_layoutManager removeTemporaryAttribute: NSSpellingStateAttributeName
|
||||||
|
@ -6066,6 +6067,9 @@ or add guards
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
NSRange prevNonCharacter;
|
||||||
|
NSRange nextNonCharacter;
|
||||||
|
NSRange range;
|
||||||
NSCharacterSet *boundary = [[NSCharacterSet letterCharacterSet] invertedSet];
|
NSCharacterSet *boundary = [[NSCharacterSet letterCharacterSet] invertedSet];
|
||||||
|
|
||||||
if (selected.location == [[self string] length] && selected.location > 0)
|
if (selected.location == [[self string] length] && selected.location > 0)
|
||||||
|
@ -6073,9 +6077,8 @@ or add guards
|
||||||
selected.location--;
|
selected.location--;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSRange prevNonCharacter = [[self string] rangeOfCharacterFromSet: boundary options: NSBackwardsSearch range: NSMakeRange(0, selected.location)];
|
prevNonCharacter = [[self string] rangeOfCharacterFromSet: boundary options: NSBackwardsSearch range: NSMakeRange(0, selected.location)];
|
||||||
NSRange nextNonCharacter = [[self string] rangeOfCharacterFromSet: boundary options: 0 range: NSMakeRange(NSMaxRange(selected), [[self string] length] - NSMaxRange(selected))];
|
nextNonCharacter = [[self string] rangeOfCharacterFromSet: boundary options: 0 range: NSMakeRange(NSMaxRange(selected), [[self string] length] - NSMaxRange(selected))];
|
||||||
NSRange range;
|
|
||||||
|
|
||||||
if (prevNonCharacter.length == 0)
|
if (prevNonCharacter.length == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue