following code happens many times in our project:
xxxxxxx;
#if defined _ETHERNET
tmp1String = deviceKey.GetAddressAsString();
#else
tmp1String = deviceKey.GetNodeAsString();
#endif
yyyyyyy;
It should be changed like:
CString GetAddrString(DeviceKey& deviceKey)
{
CString tmp1String;
#if defined _ETHERNET
tmp1String = deviceKey.GetAddressAsString();
#else
tmp1String = deviceKey.GetNodeAsString();
#endif
return tmp1String;
}
then we could use the function like:
xxxxxxx;
tmp1String = GetAddrString(deviceKey);
yyyyyyy;
分享到:
相关推荐
多用户用户可扩展的环境,用于练习聊天和创造技能。 衍生自TinyMUD 1.4.1 beta。 自1990年1月30日以来,该代码一直处于活动状态。开发站点位于telnet:uglymug.org.uk:6239上在线。
pku acm1338 Ugly Numbers 代码 动态规划思想,采用链表实现,解题报告请访问:http://blog.csdn.net/china8848
AutoJs源码-wzry.ugly.min.ugly.min.ugly.min.ugly.min.ugly.min.ugly.min。本资源购买前提醒:本源码都是实际autojs项目模板,安装好autojs直接运行即可打开。1、支持低版本autojs。2、资源仅供学习与参考,请勿...
pku acm 1338 Ugly Numbers代码 动态规划思想,数组实现 解题报告请访问:http://blog.csdn.net/china8848
In fact, the ugly code is slower than the clean code (because the clean code has become faster, not because the uglier code has become slower). This Efficiency Guide cannot really learn you how to ...
新小学英语四年级下册Unit The ugly ducklingPPT课件.pptx
The Good, The Bad, and the ugly, The UNIX Legacy.pdf 专家观点 UNIX的美与丑!
资源来自pypi官网。 资源全名:augly-0.1.9-py3-none-any.whl
Spring-abc 由于代码丑陋而弃用
Style, also known as readability, is what we call the conventions that govern our C++ code. The term Style is a bit of a misnomer, since these conventions cover far more than just source file ...
Ugly Face
ugly_num.exe
android-world-time is a work in progress, expect bugs and ugly code. Use at your own risk. No warranties expressed or implied, etc etc. Requires google-collect-1.0.zip from ...
解决ubuntu系统自带的Rthymbox音乐播放器默认不支持mp3和wma格式音乐的播放
这两天在弄linux下的东西,用的是RedHat EnterPrise 6,但由于其yum源是收费的,就使用的是对应的CentOS6,但更新后发觉安装音乐解码器插件时还是差了这几个包,纠结了好久,终于找齐了,一并传上来,希望能帮到有...
But, for a project, my friend 'anirban' required a JPEG encoder in C#. So, we started writing our own encoder. It turned out to be very complex and difficult. The one we wrote from scratch was really...
rehel6下安装mp3插件所需要的rpm包,tar.gz解压出来就是rpm包, tar -zxvf gstrem-ugly.tar.gz cd gstream-ugly yum install *.rpm
假设您在ugly_code.m有一些代码。 您可以使用一个简单的命令来分析此代码中的问题: check ugly_code.m 这可能会生成如下报告: Code Analysis for ugly_code.m Required files: ugly_code.m, ugly_toolbox.m ...
Features Icons in Menu (..Coolllll..)<END><br>75,Timetest.zip A simple code to greet your user "Good Morning"," Good Afternoon" and "Good Evening", I also used the MS Agent to spice up your ...