Move functions from an anonymous namespace in a header
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 29 Dec 2012 18:05:12 +0000 (10:05 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 8 Jan 2013 12:50:38 +0000 (13:50 +0100)
commita602cbd1eb720cd2190f510b0cf332db8f283e3a
treef98e3fa1019e02e0870236be5dfe126ac3f88c2c
parent4cd6f0ddc772daf1bedd45a2dce8afd4ed2bb5bf
Move functions from an anonymous namespace in a header

Clang doesn't like functions declared in an anonymous namespace in a
header and then later not used. It treats those are static functions,
and the -Wunused-functions warning is printed for them.

Instead, declare them inline in a regular namespace and use it.

qclucene_global_p.h:106:19: error: unused function 'QStringToTChar' [-Werror,-Wunused-function]
    inline TCHAR* QStringToTChar(const QString &str)
                  ^

Change-Id: I94696d40693558ef105281c8ec6e30159c47844d
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
src/assistant/clucene/qclucene_global_p.h