tags 490414 +patch
thanks

patch is attatched, just add it to the dpatch series.

#! /bin/sh /usr/share/dpatch/dpatch-run
## 40_fix_const.dpatch by  <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: minor const correctness fixes to make build work with latest g++.

@DPATCH@
diff -urNad 
abiword-2.4.6~/abiword-plugins/tools/abigrammar/linkgrammarwrap/LinkGrammarWrap.cpp
 
abiword-2.4.6/abiword-plugins/tools/abigrammar/linkgrammarwrap/LinkGrammarWrap.cpp
--- 
abiword-2.4.6~/abiword-plugins/tools/abigrammar/linkgrammarwrap/LinkGrammarWrap.cpp
 2006-04-09 11:12:19.000000000 +0000
+++ 
abiword-2.4.6/abiword-plugins/tools/abigrammar/linkgrammarwrap/LinkGrammarWrap.cpp
  2008-07-12 21:36:05.000000000 +0000
@@ -227,9 +227,9 @@
          //if(szViolation != NULL)
          {
            UT_sint32 iLword = linkage_get_link_lword(linkage,j);
-           char * szLword =  linkage_get_word(linkage,iLword);
+           const char * szLword =  linkage_get_word(linkage,iLword);
            UT_sint32 iRword = linkage_get_link_rword(linkage,j);
-           char * szRword =  linkage_get_word(linkage,iRword);
+           const char * szRword =  linkage_get_word(linkage,iRword);
            //UT_DEBUGMSG(("Link %d |%s| and |%s|\n",i,szLword,szRword));
            //UT_DEBUGMSG(("Left Word num %d Right Word num 
%d\n",iLword,iRword));
          }

Reply via email to