summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:53:09 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:53:09 +0000
commita6dd09c518486ec86a6d9d7746fec621e14375f4 (patch)
tree6d6c8d360907aaa36d9110c88a12a89355d607cb /hwpfilter
parentabdb93ab2c8bfcd300f92505f2f0ebb8ff3ccdbf (diff)
INTEGRATION: CWS warnings01 (1.3.4); FILE MERGED
2006/02/10 14:25:09 os 1.3.4.3: #i59838# warnings removed 2005/10/13 09:53:17 os 1.3.4.2: #i53898# warnings removed 2005/10/04 08:25:16 sb 1.3.4.1: #i53898# Merged in lost 1.2.8.1.
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/hwpfilter/source/hbox.cpp b/hwpfilter/source/hbox.cpp
index 24dadec0d8f8..815f516c6011 100644
--- a/hwpfilter/source/hbox.cpp
+++ b/hwpfilter/source/hbox.cpp
@@ -4,9 +4,9 @@
*
* $RCSfile: hbox.cpp,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 16:32:27 $
+ * last change: $Author: hr $ $Date: 2006-06-20 00:53:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,8 +33,6 @@
*
************************************************************************/
-/* $Id: hbox.cpp,v 1.3 2005-09-07 16:32:27 rt Exp $ */
-
#include "precompile.h"
#include <ctype.h>
@@ -86,7 +84,7 @@ int HBox::WSize(void)
}
-int HBox::GetString(hchar * hstr, int slen)
+int HBox::GetString(hchar * hstr, int )
{
*hstr++ = hh;
*hstr = 0;
@@ -163,13 +161,14 @@ DateCode::DateCode(void):HBox(CH_DATE_CODE)
}
+#define _DATECODE_WEEK_DEFINES_
#include "datecode.h"
int DateCode::GetString(hchar * hstr, int slen)
{
hchar *fmt, *d;
int i, num;
- char *form;
+ const char *form;
char cbuf[256];
bool is_pm, add_zero;
@@ -180,7 +179,7 @@ int DateCode::GetString(hchar * hstr, int slen)
d = hstr;
for (; *fmt && ((int) (d - hstr) < DATE_SIZE) && slen > 1; fmt++)
{
- form = const_cast < char *>((add_zero) ? "%02d" : "%d");
+ form = (add_zero) ? "%02d" : "%d";
add_zero = false;
is_pm = (date[HOUR] >= 12);
@@ -435,7 +434,7 @@ Footnote::~Footnote(void)
// Ȧʽ/߱ (21)
// mail merge(22)
-int MailMerge::GetString(hchar * hstr, int slen)
+int MailMerge::GetString(hchar * hstr, int )
{
*hstr = 0;
return 0;
@@ -555,7 +554,7 @@ static void getOutlineNumStr(int style, int level, int num, hchar * hstr)
ptr = buf;
while (*ptr)
{
- *ptr = toupper(*ptr);
+ *ptr = sal::static_int_cast<char>(toupper(*ptr));
ptr++;
}
}
@@ -566,9 +565,9 @@ static void getOutlineNumStr(int style, int level, int num, hchar * hstr)
{
num = (num - 1) % 26;
if (fmt & U_ENG)
- *hstr++ = 'A' + num;
+ *hstr++ = sal::static_int_cast<hchar>('A' + num);
else if (fmt & L_ENG)
- *hstr++ = 'a' + num;
+ *hstr++ = sal::static_int_cast<hchar>('a' + num);
else if (fmt & HAN)
*hstr++ = olHanglJaso(num, OL_HANGL_KANATA);
}
@@ -584,7 +583,7 @@ enum
number ״  ִ. , 1.2.1 1,2,1  ִ.
style 1  ִ. hbox.h ǵ ..
*/
-hchar *Outline::GetUnicode(hchar * hstr, int slen)
+hchar *Outline::GetUnicode(hchar * hstr, int)
{
int levelnum;
hchar *p;
@@ -657,7 +656,7 @@ hchar *Outline::GetUnicode(hchar * hstr, int slen)
char *ptr = dest;
while( *ptr )
{
- *ptr = toupper(*ptr);
+ *ptr = sal::static_int_cast<char>(toupper(*ptr));
ptr++;
}
}