summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-20 11:54:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-20 11:54:34 +0000
commit70430aafa50d548554f2c3cd0cb81a26dbe9ce1b (patch)
tree3d95e60ccf2c087400fc6d9368a3e367ba3f2c28 /plugins/TabSRMM/src/msgdlgutils.cpp
parent5d0a74dba4d59001e8f64cd769d19641baf62770 (diff)
various junk removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index c9e2dc7234..b2928e20e8 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -2367,7 +2367,7 @@ LONG TSAPI GetDefaultMinimumInputHeight(const TWindowData *dat)
}
#endif
-static std::vector<TCHAR *> vTempFilenames;
+static LIST<TCHAR> vTempFilenames(5);
/**
* send a pasted bitmap by file transfer.
@@ -2463,7 +2463,7 @@ void TSAPI SendHBitmapAsFile(const TWindowData *dat, HBITMAP hbmp)
Utils::AddToFileList(&ppFiles, &totalCount, filename);
wchar_t* _t = mir_tstrdup(filename);
- vTempFilenames.push_back(_t);
+ vTempFilenames.insert(_t);
CallService(MS_FILE_SENDSPECIFICFILEST, (WPARAM)dat->cache->getActiveContact(), (LPARAM)ppFiles);
@@ -2476,10 +2476,9 @@ void TSAPI SendHBitmapAsFile(const TWindowData *dat, HBITMAP hbmp)
*/
void TSAPI CleanTempFiles()
{
- std::vector<wchar_t *>::iterator it = vTempFilenames.begin();
-
- while(it != vTempFilenames.end()) {
- DeleteFileW(*it);
- mir_free(*it++);
+ for (int i=0; i < vTempFilenames.getCount(); i++) {
+ wchar_t* _t = vTempFilenames[i];
+ DeleteFileW(_t);
+ mir_free(_t);
}
}