summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-10 12:33:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-10 12:33:30 +0000
commita993efb0503615efb7a3bcdce1ce91575448e789 (patch)
tree9a48d68b77bb01a61cf28e5e8c546f142ab0e49a /src/mir_core
parent679f5352ac3ff2b3f098a502042d3359d2240415 (diff)
- tooltips for TopToolbar buttons
- replaceStr/replaceStrW moved to mir_core git-svn-id: http://svn.miranda-ng.org/main/trunk@886 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/mir_core.def2
-rw-r--r--src/mir_core/mir_core_10.vcxproj2
-rw-r--r--src/mir_core/utils.cpp16
3 files changed, 19 insertions, 1 deletions
diff --git a/src/mir_core/mir_core.def b/src/mir_core/mir_core.def
index 43dd94d7ac..2939f2feda 100644
--- a/src/mir_core/mir_core.def
+++ b/src/mir_core/mir_core.def
@@ -124,3 +124,5 @@ db_set_w @121
db_set_ws @122
UnloadCoreModule @123
Thread_SetName @124
+replaceStr @125
+replaceStrW @126 \ No newline at end of file
diff --git a/src/mir_core/mir_core_10.vcxproj b/src/mir_core/mir_core_10.vcxproj
index 03ea9c52e1..e5f452eb61 100644
--- a/src/mir_core/mir_core_10.vcxproj
+++ b/src/mir_core/mir_core_10.vcxproj
@@ -48,7 +48,7 @@
<ClCompile Include="utils.cpp" />
</ItemGroup>
<PropertyGroup Label="Globals">
- <ProjectName>Mir_core</ProjectName>
+ <ProjectName>mir_core</ProjectName>
<ProjectGuid>{D9EFEA4B-B817-4DE1-BD62-68A5DB8F5F60}</ProjectGuid>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
diff --git a/src/mir_core/utils.cpp b/src/mir_core/utils.cpp
index 4ebba2f293..12aad9d8a9 100644
--- a/src/mir_core/utils.cpp
+++ b/src/mir_core/utils.cpp
@@ -23,6 +23,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "commonheaders.h"
+MIR_CORE_DLL(char*) replaceStr( char* &dest, const char *src )
+{
+ if ( dest != NULL )
+ mir_free( dest );
+
+ return dest = ( src != NULL ) ? mir_strdup( src ) : NULL;
+}
+
+MIR_CORE_DLL(WCHAR*) replaceStrW( WCHAR* &dest, const WCHAR *src )
+{
+ if ( dest != NULL )
+ mir_free( dest );
+
+ return dest = ( src != NULL ) ? mir_wstrdup( src ) : NULL;
+}
+
MIR_CORE_DLL(char*) rtrim(char* str)
{
if (str == NULL)