cws tl83: warning-free code

This commit is contained in:
Thomas Lange [tl] 2010-07-28 15:40:32 +02:00
parent f3a2c89856
commit b1554766bf
3 changed files with 5 additions and 22 deletions

View file

@ -42,7 +42,6 @@ using namespace com::sun::star;
using namespace com::sun::star::uno;
using namespace com::sun::star::beans;
#define A2OU(x) rtl::OUString::createFromAscii( x )
static const char* aRootName = "Office.Math";

View file

@ -36,6 +36,8 @@ LIBTARGET=NO
# --- Settings -----------------------------------------------------
ENABLE_EXCEPTIONS=TRUE
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
@ -84,24 +86,6 @@ SLOFILES = \
$(SLO1FILES) \
$(SLO2FILES)
EXCEPTIONSFILES = \
$(SLO)$/register.obj \
$(SLO)$/accessibility.obj \
$(SLO)$/cfgitem.obj \
$(SLO)$/dialog.obj \
$(SLO)$/document.obj \
$(SLO)$/node.obj \
$(SLO)$/parse.obj \
$(SLO)$/mathmlimport.obj \
$(SLO)$/mathmlexport.obj \
$(SLO)$/mathtype.obj \
$(SLO)$/smdll.obj \
$(SLO)$/view.obj \
$(SLO)$/unomodel.obj \
$(SLO)$/smdetect.obj \
$(SLO)$/symbol.obj \
$(SLO)$/unodoc.obj
LIB1TARGET = \
$(SLB)$/$(TARGET).lib

View file

@ -2886,12 +2886,12 @@ void SmSpecialNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell
bItalic = true;
else if (nStyle == 2)
{
String aText( GetText() );
if (aText.Len() > 0)
String aTmp( GetText() );
if (aTmp.Len() > 0)
{
const sal_Unicode cUppercaseAlpha = 0x0391;
const sal_Unicode cUppercaseOmega = 0x03A9;
sal_Unicode cChar = aText.GetBuffer()[0];
sal_Unicode cChar = aTmp.GetBuffer()[0];
// uppercase letters should be straight and lowercase letters italic
bItalic = !(cUppercaseAlpha <= cChar && cChar <= cUppercaseOmega);
}