diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-09-13 01:07:59 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-09-13 01:07:59 (GMT) |
commit | 8a421584859ddd1347b2916601547e4ba993e5ed (patch) | |
tree | bb1d15b8e2445416152559c7d63aa7313d27a9a6 /src | |
parent | 30fd8b250af29c16dc25013b4aceb91cf51a7432 (diff) |
cleanups, tab fixes, remove redundant code
Diffstat (limited to 'src')
-rw-r--r-- | src/CGALEvaluator.cc | 1 | ||||
-rw-r--r-- | src/PlatformUtils.h | 1 | ||||
-rw-r--r-- | src/mainwin.cc | 10 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 8da4649..ec01315 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -215,7 +215,6 @@ CGAL_Nef_polyhedron CGALEvaluator::applyResize(const CgaladvNode &node) bbox_size.push_back( bb.xmax()-bb.xmin() ); bbox_size.push_back( bb.ymax()-bb.ymin() ); bbox_size.push_back( bb.zmax()-bb.zmin() ); - int newsizemax_index = 0; for (int i=0;i<N.dim;i++) { if (node.newsize[i]) { diff --git a/src/PlatformUtils.h b/src/PlatformUtils.h index f718bb2..18dd5fa 100644 --- a/src/PlatformUtils.h +++ b/src/PlatformUtils.h @@ -4,6 +4,7 @@ #include <string> namespace PlatformUtils { + std::string documentsPath(); std::string libraryPath(); bool createLibraryPath(); diff --git a/src/mainwin.cc b/src/mainwin.cc index 3104ed3..7bcf926 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -1826,14 +1826,12 @@ MainWindow::helpManual() void MainWindow::helpLibrary() { - std::string basicinfo = PlatformUtils::info(); - QString info( basicinfo.c_str() ); - info += QString(qglview->getRendererInfo().c_str()); - + QString info( PlatformUtils::info().c_str() ); + info += QString( qglview->getRendererInfo().c_str() ); if (!this->openglbox) { this->openglbox = new QMessageBox(QMessageBox::Information, - "OpenGL Info", "OpenSCAD Detailed Library and Build Information", - QMessageBox::Ok, this); + "OpenGL Info", "OpenSCAD Detailed Library and Build Information", + QMessageBox::Ok, this); } this->openglbox->setDetailedText( info ); this->openglbox->show(); |