From kde-commits Sat Aug 21 15:56:03 2004 From: Christoph Cullmann Date: Sat, 21 Aug 2004 15:56:03 +0000 To: kde-commits Subject: kdeaddons/kate/xmlcheck Message-Id: <20040821155603.CF41C8EB3 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109310379310824 CVS commit by cullmann: use standard prefix for the tmp file, fix bug 82560 M +9 -9 plugin_katexmlcheck.cpp 1.18 --- kdeaddons/kate/xmlcheck/plugin_katexmlcheck.cpp #1.17:1.18 @@ -284,10 +284,10 @@ bool PluginKateXMLCheckView::slotValidat } Kate::Document *doc = (Kate::Document*)kv->document(); - KURL url(doc->url()); - m_tmp_file = new KTempFile(url.path()); + + m_tmp_file = new KTempFile(); if( m_tmp_file->status() != 0 ) { kdDebug() << "Error (slotValidate()): could not create '" << m_tmp_file->name() << "': " << m_tmp_file->status() << endl; KMessageBox::error(0, i18n("Error: Could not create " - "temporary file in '%1'.").arg(url.directory())); + "temporary file '%1'.").arg(m_tmp_file->name())); return false; }