Skip to content

Commit

Permalink
Remove usage of deprecated g_type_init
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed May 2, 2018
1 parent 4944c21 commit 2924997
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/contentinfo.cpp
Expand Up @@ -103,8 +103,6 @@ ContentInfo::typeIcon () const
ContentInfo
ContentInfo::forMime (const QString &mimeType)
{
g_type_init ();

gchar *contentType = g_content_type_from_mime_type (mimeType.toUtf8());

Private *priv = new Private;
Expand Down Expand Up @@ -161,8 +159,6 @@ ContentInfo::forTracker (const QString &tracker_uri)
ContentInfo
ContentInfo::forData (const QByteArray &bytes)
{
g_type_init ();

gchar *content_type = g_content_type_guess (NULL, (const guchar *)bytes.constData(), bytes.size(), NULL);
if (content_type)
{
Expand Down
1 change: 0 additions & 1 deletion src/exec.cpp
Expand Up @@ -35,7 +35,6 @@ ExecPrivate::ExecPrivate(QSharedPointer<MDesktopEntry> desktopEntry,
const QStringList& params)
: DefaultPrivate(desktopEntry, params), appInfo(0)
{
g_type_init();
GError *execError = 0;
GKeyFile *keyFile;
GKeyFileFlags flags = G_KEY_FILE_NONE;
Expand Down
1 change: 0 additions & 1 deletion src/mime.cpp
Expand Up @@ -155,7 +155,6 @@ static QString generalizeMimeType(const QString &mime)
/// be retrieved.
QString Internal::mimeForFile(const QUrl& uri)
{
g_type_init();
// assume "file" scheme if the uri had nothing
QUrl fileUri(uri);
if (fileUri.scheme().isEmpty())
Expand Down

0 comments on commit 2924997

Please sign in to comment.