Compiling LO without libfreehand

mcmurchy1917techy mcmurchy1917techy at btinternet.com
Fri Nov 1 13:27:44 UTC 2019


On 01/11/2019 12:53, Eike Rathke wrote:
> Hi mcmurchy1917techy,
>
> On Wednesday, 2019-10-30 12:14:14 +0000, mcmurchy1917techy wrote:
>
>> The file libfreehand_utils.cpp, in the current external libfreehand tarball,
>> has an error in it that stops LO compiling.
> And the error is ...?
>
>    Eike

The error was at line 165 in the file src/lib/libfreehand_utils.cpp 
within the external tarball libfreehand-0.1.2.tar.xz. So not an LO error.

Missing semicolon.

 >    153  void libfreehand::_appendUTF16(librevenge::RVNGString &text, 
std::vector<unsigned short> &characters)
 >    154  {
 >    155    if (characters.empty())
 >    156      return;
 >    157
 >    158    const unsigned short *s = &characters[0];
 >    159    int j = 0;
 >    160    int length = characters.size();
 >    161
 >    162    while (j < length)
 >    163    {
 >    164      UChar32 c;
 >    165      U16_NEXT(s, j, length, c)
 >    166      unsigned char outbuf[U8_MAX_LENGTH+1];
 >    167      int i = 0;
 >    168      U8_APPEND_UNSAFE(&outbuf[0], i, c);
 >    169      outbuf[i] = 0;
 >    170
 >    171      text.append((char *)outbuf);
 >    172    }
 >    173  }

Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20191101/ecbdaf43/attachment.html>


More information about the LibreOffice mailing list