[scribus-dev] Make error with r18479

Andreas Vox avox at arcor.de
Mon Sep 16 10:47:19 UTC 2013


Am 15.09.2013 um 23:57 schrieb Christoph Schäfer:

> Hi,
> 
> make fails with r18479:
> 
> /home/christoph/scribus15/Scribus/scribus/scribusdoc.cpp: In member function ‘bool ScribusDoc::updateLocalNums(StoryText&)’:
> /home/christoph/scribus15/Scribus/scribus/scribusdoc.cpp:17014:77: error: converting to ‘QChar’ from initializer list would use explicit constructor ‘QChar::QChar(char)’
> make[2]: *** [scribus/CMakeFiles/scribus.dir/scribusdoc.cpp.o] Fehler 1
> make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Fehler 2
> make: *** [all] Fehler 2
> 
> 
> Qt 5.1.1, CMake 2.8.11
> 

Hi Christoph!

What OS and compiler are you using? 
Did you compile Qt yourself? Your version of Qt wants explicit char -> QChar conversions. 
In this case you should change numerations.h:55-57

	const QString getStringFromNum(NumFormat format, int num, const QChar leadingChar = QChar('0'), const int charsLen=0);
	//convert passed num to string with custom chars
	const QString getAsterixStringFromNum(int num, QString asterix, const QChar leadingChar = QChar('_'), const int charsLen=0);


Does that help?

/Andreas




More information about the scribus-dev mailing list