From e4c4c1a9a170f8eb89f8e8642a510c4499465280 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 24 Jun 2009 08:57:07 +0000 Subject: [PATCH 1/1] Actually set the bool in Setters --- src2/creaImageIOPACSConnection.cpp | 11 +++++++++-- src2/creaImageIOSQLiteTreeHandler.h | 2 +- src2/creaImageIOWxEditFieldsPanel.cpp | 3 --- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src2/creaImageIOPACSConnection.cpp b/src2/creaImageIOPACSConnection.cpp index 4d66c3c..ffa6571 100644 --- a/src2/creaImageIOPACSConnection.cpp +++ b/src2/creaImageIOPACSConnection.cpp @@ -1,10 +1,11 @@ + #include #include #include #include -#include +//#include -using boost::asio::ip::tcp; +//using boost::asio::ip::tcp; enum { max_length = 3086 }; using namespace std; @@ -12,6 +13,7 @@ namespace creaImageIO { PACSConnection::PACSConnection(std::string command) { + /* try { @@ -38,5 +40,10 @@ namespace creaImageIO { std::cerr << "Exception: " << e.what() << "\n"; } + */ } + } + + + diff --git a/src2/creaImageIOSQLiteTreeHandler.h b/src2/creaImageIOSQLiteTreeHandler.h index 6948675..0b102b5 100644 --- a/src2/creaImageIOSQLiteTreeHandler.h +++ b/src2/creaImageIOSQLiteTreeHandler.h @@ -265,7 +265,7 @@ namespace creaImageIO std::string mFileName; /// Is the DB writable ? bool mWritable; - void SetWritable(bool w) { mWritable; } + void SetWritable(bool w) { mWritable = w; } bool GetWritable() const { return mWritable; } bool mIsAdding; diff --git a/src2/creaImageIOWxEditFieldsPanel.cpp b/src2/creaImageIOWxEditFieldsPanel.cpp index 87d6a11..81d7ae0 100644 --- a/src2/creaImageIOWxEditFieldsPanel.cpp +++ b/src2/creaImageIOWxEditFieldsPanel.cpp @@ -85,6 +85,3 @@ END_EVENT_TABLE() } // EO namespace creaImageIO - - - -- 2.45.1