Kaydet (Commit) 9ad1f94a authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS ooo11rc (1.99.30); FILE MERGED

2003/06/27 00:49:34 nick 1.99.30.1: IZ 15350: GCC 2 bug when member function is part of initialiser (on IRIX)
üst 6cb6964d
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtimp.cxx,v $ * $RCSfile: txtimp.cxx,v $
* *
* $Revision: 1.100 $ * $Revision: 1.101 $
* *
* last change: $Author: hr $ $Date: 2003-06-30 15:59:45 $ * last change: $Author: vg $ $Date: 2003-07-02 14:09:38 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1245,7 +1245,17 @@ void XMLTextImportHelper::SetOutlineStyle( ...@@ -1245,7 +1245,17 @@ void XMLTextImportHelper::SetOutlineStyle(
nLevel > 0 && nLevel <= xChapterNumbering->getCount() ) nLevel > 0 && nLevel <= xChapterNumbering->getCount() )
{ {
if( !pOutlineStyles ) if( !pOutlineStyles )
{
#ifdef IRIX
/* GCC 2 bug when member function is called as part of an array
* initialiser
*/
sal_Int8 count = xChapterNumbering->getCount();
pOutlineStyles = new OUString[count];
#else
pOutlineStyles = new OUString[xChapterNumbering->getCount()]; pOutlineStyles = new OUString[xChapterNumbering->getCount()];
#endif
}
pOutlineStyles[nLevel-1] = rStyleName; pOutlineStyles[nLevel-1] = rStyleName;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment