Commit 97d76345 authored by Laurent Montel's avatar Laurent Montel
Browse files

Const'ref. Fix include/Forward declaration

parent c80beeb5
......@@ -50,6 +50,9 @@
#include <QFile>
#include <QInputDialog>
#include <QDomImplementation>
#include <QUndoGroup>
#include <QTimer>
#include <QUndoStack>
#include <mlt++/Mlt.h>
......@@ -577,7 +580,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(const QList <TrackInfo> &tracks)
}
void KdenliveDoc::syncGuides(QList <Guide *> guides)
void KdenliveDoc::syncGuides(const QList <Guide *> &guides)
{
m_guidesXml.clear();
QDomElement guideNode = m_guidesXml.createElement("guides");
......@@ -886,8 +889,10 @@ MltVideoProfile KdenliveDoc::mltProfile() const
bool KdenliveDoc::setProfilePath(QString path)
{
if (path.isEmpty()) path = KdenliveSettings::default_profile();
if (path.isEmpty()) path = "dv_pal";
if (path.isEmpty())
path = KdenliveSettings::default_profile();
if (path.isEmpty())
path = QLatin1String("dv_pal");
m_profile = ProfilesDialog::getVideoProfile(path);
double current_fps = m_fps;
if (m_profile.path.isEmpty()) {
......
......@@ -22,14 +22,10 @@
#define KDENLIVEDOC_H
#include <qdom.h>
#include <QString>
#include <QMap>
#include <QList>
#include <QDir>
#include <QObject>
#include <QUndoGroup>
#include <QUndoStack>
#include <QTimer>
#include <KUrl>
#include <kautosavefile.h>
......@@ -47,6 +43,9 @@ class TrackInfo;
class KTextEdit;
class KProgressDialog;
class QUndoGroup;
class QTimer;
class QUndoStack;
class KdenliveDoc: public QObject
{
......@@ -107,7 +106,7 @@ public:
/** @brief Returns the project folder, used to store project files. */
KUrl projectFolder() const;
void syncGuides(QList <Guide *> guides);
void syncGuides(const QList <Guide *> &guides);
void setZoom(int horizontal, int vertical);
QPoint zoom() const;
double dar() const;
......
......@@ -113,6 +113,7 @@
#include <QInputDialog>
#include <QDesktopWidget>
#include <QBitmap>
#include <QUndoGroup>
#include <stdlib.h>
#include <locale.h>
......
Supports Markdown
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