瀏覽代碼

Remove warnings

Kandrashin Denis 13 年之前
父節點
當前提交
986ff86d68
共有 3 個文件被更改,包括 4 次插入5 次删除
  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);
 
-    void load(const QByteArray data, const QList<int> folds)
+    void load(const QByteArray data)
         { setPlainText(QString::fromUtf8(data.data())); }
 
     bool isUndoAvailable() { return false; }
 
     bool isRedoAvailable() { return false; }
 
-    void zoomTo ( int size ) {}
+    void zoomTo ( int ) {}
 
     bool findText(const QString &exp, QTextDocument::FindFlags options = 0);
 

+ 1 - 1
source/fb2html.h

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

+ 1 - 2
source/fb2main.cpp

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