OSSP CVS Repository

ossp - Check-in [2860]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2860
Date: 2002-Nov-20 20:37:27 (local)
2002-Nov-20 19:37:27 (UTC)
User:ms
Branch:
Comment: Fix some object allocations, and wonder why the compiler allowed a second definition for each class member?
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.6 -> 1.7     5 inserted, 5 deleted
ossp-pkg/titraq/titassist.cpp      1.6 -> 1.7     5 inserted, 5 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.6 -> 1.7

--- as_assist.cpp        2002/11/20 11:06:32     1.6
+++ as_assist.cpp        2002/11/20 19:37:27     1.7
@@ -285,7 +285,7 @@
 {
     // Make the date selector
     QDate Sylvestre(2002, 12, 31);
-    QDateEdit *m_pDateedit = new QDateEdit(Sylvestre, m_pCenframe, "Date");
+    m_pDateedit = new QDateEdit(Sylvestre, m_pCenframe, "Date");
     if (m_pDateedit == NULL)                                        // Sanity check
         throw Genexcept("Main window date edit creation failed.");  // Spew errors
     m_pDatelayout->addWidget(m_pDateedit);                       // Finally add the date editor
@@ -299,7 +299,7 @@
     QWhatsThis::add(m_pDateedit, kszDateedit);
 
     // Make the start time selector
-    QTimeEdit *m_pStarttime = new QTimeEdit(QTime::currentTime(), m_pCenframe, "StartTime");
+    m_pStarttime = new QTimeEdit(QTime::currentTime(), m_pCenframe, "StartTime");
     if (m_pStarttime == NULL)                                       // Sanity check
         throw Genexcept("Main window start time creation failed."); // Spew errors
     m_pDatelayout->addWidget(m_pStarttime);                      // Finally add the start editor
@@ -313,7 +313,7 @@
     QWhatsThis::add(m_pStarttime, kszStarttime);
 
     // Make the end time selector
-    QTimeEdit *m_pEndtime = new QTimeEdit(QTime::currentTime(), m_pCenframe, "EndTime");
+    m_pEndtime = new QTimeEdit(QTime::currentTime(), m_pCenframe, "EndTime");
     if (m_pEndtime == NULL)                                        // Sanity check
         throw Genexcept("Main window end time creation failed.");  // Spew errors
     m_pDatelayout->addWidget(m_pEndtime);                       // Finally add the end editor
@@ -327,7 +327,7 @@
     QWhatsThis::add(m_pEndtime, kszEndtime);
 
     // Make the amount selector
-    QSpinBox *m_pAmount = new QSpinBox(m_pCenframe, "Amount");
+    m_pAmount = new QSpinBox(m_pCenframe, "Amount");
     if (m_pAmount == NULL)                                      // Sanity check
         throw Genexcept("Main window amount creation failed."); // Spew errors
     m_pDatelayout->addWidget(m_pAmount);                     // Finally add the amount editor
@@ -347,7 +347,7 @@
     *m_pTaskentries << trUtf8("titraq") << trUtf8("opgui") << trUtf8("email") << trUtf8("admin") << trUtf8("pmod") << trUtf8("psod") << trUtf8("meeting") << trUtf8("training");
 
     // Make the combobox task edit
-    QComboBox *m_pTasks = new QComboBox(true, m_pCenframe, "Tasks");
+    m_pTasks = new QComboBox(true, m_pCenframe, "Tasks");
     if (m_pTasks == NULL)   // Sanity check
         throw Genexcept("Main window task edit creation failed.");
     m_pTasks->insertStringList(*m_pTaskentries);


CVSTrac 2.0.1