Quellcode durchsuchen

Remove warnings

Kandrashin Denis vor 13 Jahren
Ursprung
Commit
986ff86d68
3 geänderte Dateien mit 4 neuen und 5 gelöschten Zeilen
  1. 2 2
      source/fb2code.hpp
  2. 1 1
      source/fb2html.h
  3. 1 2
      source/fb2main.cpp

+ 2 - 2
source/fb2code.hpp

@@ -86,14 +86,14 @@ public:
 
 
     bool read(QIODevice *device);
     bool read(QIODevice *device);
 
 
-    void load(const QByteArray data, const QList<int> folds)
+    void load(const QByteArray data)
         { setPlainText(QString::fromUtf8(data.data())); }
         { setPlainText(QString::fromUtf8(data.data())); }
 
 
     bool isUndoAvailable() { return false; }
     bool isUndoAvailable() { return false; }
 
 
     bool isRedoAvailable() { return false; }
     bool isRedoAvailable() { return false; }
 
 
-    void zoomTo ( int size ) {}
+    void zoomTo ( int ) {}
 
 
     bool findText(const QString &exp, QTextDocument::FindFlags options = 0);
     bool findText(const QString &exp, QTextDocument::FindFlags options = 0);
 
 

+ 1 - 1
source/fb2html.h

@@ -43,8 +43,8 @@ public:
     virtual void undo();
     virtual void undo();
     virtual void redo();
     virtual void redo();
 private:
 private:
-    FbTextElement m_parent;
     FbTextElement m_element;
     FbTextElement m_element;
+    FbTextElement m_parent;
     bool m_inner;
     bool m_inner;
 };
 };
 
 

+ 1 - 2
source/fb2main.cpp

@@ -603,7 +603,6 @@ void FbMainWindow::viewCode()
 
 
     bool load = false;
     bool load = false;
     QByteArray xml;
     QByteArray xml;
-    QList<int> folds;
     if (textFrame) {
     if (textFrame) {
         textFrame->view.save(&xml);
         textFrame->view.save(&xml);
         load = true;
         load = true;
@@ -616,7 +615,7 @@ void FbMainWindow::viewCode()
     if (!codeEdit) {
     if (!codeEdit) {
         codeEdit = new FbCodeEdit;
         codeEdit = new FbCodeEdit;
     }
     }
-    if (load) codeEdit->load(xml, folds);
+    if (load) codeEdit->load(xml);
     setCentralWidget(codeEdit);
     setCentralWidget(codeEdit);
     codeEdit->setFocus();
     codeEdit->setFocus();