Bolding of selected line-numbers
Compacting String functions Removed empty lines (style) Ignore *.aps files git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@69 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
parent
9badf6e430
commit
04f2da6899
4 changed files with 15 additions and 14 deletions
|
@ -64,10 +64,7 @@ namespace LSLEditor
|
|||
// 3 oct 2007
|
||||
public static explicit operator String(bool a)
|
||||
{
|
||||
if (a)
|
||||
return "1";
|
||||
else
|
||||
return "0";
|
||||
return a ? "1" : "0";
|
||||
}
|
||||
|
||||
// 24 augustus 2007
|
||||
|
@ -93,10 +90,7 @@ namespace LSLEditor
|
|||
|
||||
public static implicit operator bool(String s)
|
||||
{
|
||||
if (s.value == null)
|
||||
return false;
|
||||
else
|
||||
return (s.value.Length != 0);
|
||||
return (s.value == null) ? false : (s.value.Length != 0);
|
||||
}
|
||||
|
||||
public static bool operator ==(String x, String y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue