Changeset 210 for trunk/tests/DumbDocument.cxx
- Timestamp:
- 06/10/06 09:02:37 (2 years ago)
- Files:
-
- 1 modified
-
trunk/tests/DumbDocument.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/DumbDocument.cxx
r205 r210 30 30 m_Loaded = FALSE; 31 31 m_OpenError = DocumentErrorNone; 32 m_TestPassword = NULL; 32 m_SavedFileName = g_strdup (""); 33 m_TestPassword = NULL; 33 34 setNumPages (2); 34 35 } … … 37 38 { 38 39 clearCache (); 40 g_free (m_SavedFileName); 39 41 g_free (m_TestPassword); 40 42 } … … 101 103 102 104 gboolean 103 DumbDocument::saveFile (const gchar *file name, GError **error)105 DumbDocument::saveFile (const gchar *fileName, GError **error) 104 106 { 105 // Do nothing. 107 g_free (m_SavedFileName); 108 m_SavedFileName = g_strdup (fileName); 106 109 return TRUE; 107 110 } … … 110 113 // Tests Methods 111 114 //////////////////////////////////////////////////////////////// 115 116 const gchar * 117 DumbDocument::getSavedFileName () 118 { 119 return m_SavedFileName; 120 } 121 112 122 void 113 123 DumbDocument::setOpenError (DocumentError error)
