cws tl83: warning-free code
This commit is contained in:
parent
f3a2c89856
commit
b1554766bf
3 changed files with 5 additions and 22 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue