Commit ffa20b78 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

fixed unused variable warnings when building without id3lib and TagLib

parent bcabb71c
......@@ -62,6 +62,7 @@
enum { TextEncodingV1Latin1Index = 13 };
#if defined HAVE_ID3LIB || defined HAVE_TAGLIB
/**
* Remove aliases in braces from text encoding combo box entry.
*
......@@ -74,6 +75,7 @@ static QString getTextEncodingV1CodecName(const QString& comboEntry)
int braceIdx = comboEntry.QCM_indexOf(" (");
return braceIdx == -1 ? comboEntry : comboEntry.left(braceIdx);
}
#endif
/**
* Constructor.
......
......@@ -948,9 +948,11 @@ void Kid3App::saveOptions()
*/
static void setTextEncodings()
{
#if defined HAVE_ID3LIB || defined HAVE_TAGLIB
const QTextCodec* id3v1TextCodec =
Kid3App::s_miscCfg.m_textEncodingV1 != "ISO-8859-1" ?
QTextCodec::codecForName(Kid3App::s_miscCfg.m_textEncodingV1.QCM_latin1()) : 0;
#endif
#ifdef HAVE_ID3LIB
Mp3File::setDefaultTextEncoding(
static_cast<MiscConfig::TextEncoding>(Kid3App::s_miscCfg.m_textEncoding));
......
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