Bug 276227 - build failure - QString
Summary: build failure - QString
Status: RESOLVED FIXED
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-22 02:14 UTC by tropikhajma
Modified: 2011-06-22 21:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2011-06-22 02:14:51 UTC
Version:           unspecified (using KDE 4.6.4) 
OS:                Solaris

build fails with the below message,
the below patch fixes that

kdebuild/packages/BUILD/kdeedu-4.6.4/kalzium/src/kdeeduglossary.h", line 36: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
kdebuild/packages/BUILD/kdeedu-4.6.4/kalzium/src/kdeeduglossary.h", line 36: Error: Cannot use int to initialize const QString.


--- kalzium/src/kdeeduglossary.h.orig	2011-06-22 00:04:03.384213491 +0000
+++ kalzium/src/kdeeduglossary.h	2011-06-22 00:05:53.914435402 +0000
@@ -33,7 +33,7 @@
 		 * @param url the path of the file to load
 		 * @param path the path of the pictures
 		 */
-		explicit Glossary( const KUrl& url, const QString& path = 0 );
+		explicit Glossary( const KUrl& url, const QString& path = QString() );
 
 		/**
 		 * Creates a new empty glossary


Reproducible: Always
Comment 1 Etienne 2011-06-22 21:15:52 UTC
Git commit 1d21f13b2b6b9a9851f6872da173dabf412ed28c by Etienne Rebetez.
Committed on 22/06/2011 at 20:31.
Pushed by erebetez into branch '4.6'.

Fix compilation error in the glossary class.
Master is fine, not shure how it got on the 4.6 branch ...
BUG:276227

M  +1    -1    src/kdeeduglossary.h     

http://commits.kde.org/kalzium/1d21f13b2b6b9a9851f6872da173dabf412ed28c